Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Komlan Egoh
Courses Plus Student 1,116 PointsHello
Create a Submit Button
3 Answers
Lucas Krause
19,924 PointsThere are two ways to do this:
Option 1:
<input type="submit">
Option 2:
<button type="submit">Submit</button>
Moreover you can invoke a form submission using javascript.
document.forms[0].submit();
Komlan Egoh
Courses Plus Student 1,116 Pointshello
Zack Taylor
9,021 Pointscreating a submit button is easy my friend. example link - codepen.io more examples @ http://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_submit Hope this helps.