I have a form which has one field username. If some one submit the button "enter" the next field pop up. I have done using the jquery . And it after entering the password in that field when i click the "login" button (input type of button is submit in both case) request goes to the server. Every thing working fine for all browsers except firefox. When someone click the login button it works fine but when when i want to submit the form by hitting the enter key nothing happens. Each time for submit in firefox i have to use mouse. So, what can be the problem. I am not putting the code but it is simple form.
I have a form which has one field username . If some one submit
Share
The documentation for jQuery says:
If those conditions are not met, you may need to assign a key listener and listen for the enter key. Also, I wouldn’t be surprised if the “submit button” has to be an input of type submit, not a button… but I don’t feel like testing it to confirm 🙂