Ballon
Ballon

Reputation: 7204

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?

Upvotes: 0

Views: 971

Answers (2)

Silver Quettier
Silver Quettier

Reputation: 2050

Not sure if it's your problem, but I had a similar one - solution was putting "SUBMIT" in lowercase.

Upvotes: 0

mellamokb
mellamokb

Reputation: 56789

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>

Upvotes: 2

Related Questions