using enter key to submit form
i browsed forums but coudnt get help
i posted this at html forum:
and got this:
this code is from one of KYank's articles:<input type="submit" name="submitquery" value="Ver (Alt+S)" accesskey="S" />
I want it changed in a way that i can submit the form pressing the enter button. How can i achieve it?
How do i do it?
enter to submit a form is only default within a text input or password input. you'll need to add an onkeypress event to the window, and check if the keyCode or charCode == 13.
its a textarea