hi to all!
how can i prevent the "return / enter" key to submit the current form
if hit in a text input? i've actually added the code:
onKeyPress="if( event.KeyCode== 13){doGivenFunc tion();}"
to make it react the way i'd like (calling a function and not
submitting the form), but it doesn not work.
any suggestion?
thanks in advance for any eventual help
how can i prevent the "return / enter" key to submit the current form
if hit in a text input? i've actually added the code:
onKeyPress="if( event.KeyCode== 13){doGivenFunc tion();}"
to make it react the way i'd like (calling a function and not
submitting the form), but it doesn not work.
any suggestion?
thanks in advance for any eventual help
Comment