I have a login form that resides within a div with display: none; I then fade in the form using jquery but the Enter/Return key no longer submits the form. If I change the display to block, it works fine. This problem is IE only.
Any ideas?
Here's an example code that doesn't work;
<div id='formdiv' style='display: none;'>
<form id='loginForm' name='createLoginForm' method='post' action='' >
<input type='text' name='username' id='username' />
<input type='password' name='password' id='password' />
<input type='submit' name='submit' id='login_submit' />
</form>
</div>
And I stuck this in the to test the hiding/showing;
<script type="text/javascript" src="jquery.tools.min.js"></script>
<script type='text/javascript'>
setTimeout('$("#formdiv").show()',1000);
</script>