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 trialJennifer Ciaccio
UX Design Techdegree Student 11,137 PointsSubmit for 'Save' button
Is it possible to do a submit type event for the save button, so that after editing the name you can either click "save" or hit enter?
1 Answer
Steven Parker
231,248 PointsYou didn't show the original code, but I'd guess you might be talking about a button
element that has the legend "submit" on it.
A "submit" event is only generated for an input
element of type submit
. A button
element wouldn't generate that type of event even though it might look the same on the page.