views:

45

answers:

1

Hi,

I have a form in HTML in the following 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...

A: 

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.

Adam