JavaScript - Multiple signals received after click
- by Angelo A
I'm creating a webapp using jQueryMobile. When I'm using the app and I click a button it runs the script multiple times.
For example:
I have a submit button:
<input type="submit" id="login-normal" value="Login" />
And I have this JavaScript for debugging on which this error occurs:
$("input#login-normal").live('click',function() {
console.log("Test");
});
On the very first click it works (and it goes to another screen for example), but when I go back to that screen and I click again, it outputs multiple console.logs