Search code examples
htmlbuttonfirefox4

Firefox 4 submit button problem


In Firefox 4 when I press submit button nothing happens. The code of button is:

<input class="button" type="SUBMIT" value="Login" form="dataForm" name="event_Login">

On Firefox 3.6 the button is working OK. Some solution?


Solution

  • It appears the problem is with form="dataForm". When I remove that attribute, the button works fine again in FF4. The value of the form attribute should be the id of a form to submit, otherwise the button will do nothing (at least in FF4). For instance, this button will work:

    <form id="dataForm">
        <input  ... form="dataForm" />
    </form>