Hi.
I have a html form, I want to submit this form with enter key i.e. without click on button ? Please help me anyone with an example ?
Thakns
Submit a form with enter key in HTML
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


SenthilkumarRank #387 · 6.5K reputationPosted Apr 17, 2012, 11:01 PM EDT
If you have a html form with some text boxes then
try this and let me know.
Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 18, 2012, 12:06 AM EDT
Do some modification on above code
http://www.w3.org/1999/xhtml">
'submitform(event);'>
when u press Enter then event generate code 13.
hope this help.