Let's add a <code>submit</code> 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>
</section>
## Instructions
<sectionid='instructions'>
Add a button as the last element of your <code>form</code> element with a type of <code>submit</code>, and "Submit" as its text.
testString: 'assert($("form").children("button").length > 0, ''Your form should have a button inside it.'');'
- text: Your submit button should have the attribute <code>type</code> set to <code>submit</code>.
testString: 'assert($("button").attr("type") === "submit", ''Your submit button should have the attribute <code>type</code> set to <code>submit</code>.'');'
- 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 <code>button</code> element has a closing tag.
testString: 'assert(code.match(/<\/button>/g) && code.match(/<button/g)&&code.match(/<\/button>/g).length === code.match(/<button/g).length,''Makesureyour<code>button</code> element has a closing tag.'');'