Ensures a button has been fully declared, fixes #683
This commit is contained in:
@ -1571,12 +1571,12 @@
|
|||||||
"name": "Waypoint: Add a Submit Button to a Form",
|
"name": "Waypoint: Add a Submit Button to a Form",
|
||||||
"difficulty": 0.041,
|
"difficulty": 0.041,
|
||||||
"description": [
|
"description": [
|
||||||
"Add a submit button to your form field.",
|
"Add a submit button to your form field with type <code>submit</code> and a test value of \"Submit\".",
|
||||||
"Let's add a submit button to your form. Clicking this button will send the data from your form to the URL you specified with your form's <code>action</code> attribute.",
|
"Let's add a submit button to your form. Clicking this button will send the data from your form to the URL you specified with your form's <code>action</code> attribute.",
|
||||||
"Here's an example submit button: <code><button type='submit'>this button submits the form</button><code>"
|
"Here's an example submit button: <code><button type='submit'>this button submits the form</button><code>"
|
||||||
],
|
],
|
||||||
"tests": [
|
"tests": [
|
||||||
"assert($('button').length > 0, 'Your form should have a button inside it.')"
|
"assert(new RegExp('<button type=.submit.>Submit</button>', 'gi').test(editor), 'Make sure you have completely declared your button!');"
|
||||||
],
|
],
|
||||||
"challengeSeed": [
|
"challengeSeed": [
|
||||||
"<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>",
|
"<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>",
|
||||||
|
Reference in New Issue
Block a user