Click here to view more cat photos.
Things cats love:
- cat nip
- laser pointers
- lasagna
Top 3 things cats hate:
- flea treatment
- thunder
- other cats
submit
button to your form. Clicking this button will send the data from your form to the URL you specified with your form's action
attribute.
Here's an example submit button:
<button type="submit">this button submits the form</button>
form
element with a type of submit
, and "Submit" as its text.
type
set to submit
.
testString: assert($("button").attr("type") === "submit", 'Your submit button should have the attribute type
set to submit
.');
- text: Your submit button should only have the text "Submit".
testString: assert($("button").text().match(/^\s*submit\s*$/gi), 'Your submit button should only have the text "Submit".');
- text: Make sure your button
element has a closing tag.
testString: assert(code.match(/<\/button>/g) && code.match(/Click here to view more cat photos.
Things cats love:
Top 3 things cats hate: