I'm having issues with events in Internet Explorer 7.
When I have a form with two or more input[type=text] and I press enter, the events happen in the following order:
- submit button (
onClick) - form (
onSubmit)
Code example:
<form onSubmit="{alert('form::onSubmit'); return false;}">
<input type="text">
<input type="text">
<input type="submit" onClick="{alert('button::onClick');}">
</form>
If I have only one input[type=text] , and I press the enter button, the button onClickdoes not work. Code example:
<form onSubmit="{alert('form::onSubmit'); return false;}">
<input type="text">
<input type="submit" onClick="{alert('button::onClick');}">
</form>
source
share