A problem with the way Submit button works in IE and Mozilla
I have a form in HTML in the follo开发者_Go百科wing order
<form>
input field
<submit button1>
input field
<submit button2>
Now when I am pressend the "Enter" Hardkey from Keyboard, it is taking submit button2 in IE but not in Mozilla. For me Mozilla is working fine.
Can anyone help me out in this...
You probably figured this out by now, but the disabled attribute is not a boolean value. You need to set disabled to "disabled", but (document.getElementById("form").f3.value == "Never")
evaluates to a boolean.
精彩评论