Tuesday, March 20, 2012

Automatic submit on enter on input type=text ?

Depending on the browser, the Enter key may only cause a form submission if the form has exactly one text field, or only when there is a submit button present. The interface should not rely on a particular behavior for this key unless the issue is forced by observing the keypress event for presses of the Enter key.

so fix is add this
" input type="text" id="Text1" style="display:none;" /"

No comments:

Post a Comment