2011.02.14
Another IE headache
Here's one.
It seems that in Internet Explorer if a submit button is not visible or hidden during a JQuery .submit() event triggered by a press of the enter key, the form does not submit! Clicking the submit button works fine.
Take the following code:
1. $('#myform').live('submit', function(){
2. alert('submitting);
3. $('#submitbutton').hide();
4. });
If the enter key is pressed, the code on line 3 is parsed and Internet Explorer stops submitting the form. If I rem out line 3, the alert fires and form submits.
Once again, this code works fine if the form is submitted by clicking on the submit button
software
Witty rejoinders
| (never published) | |
| http:// | |
| Captcha: | |