I have a simple form to recharge account. In this account i am reading the card number through bar code reader but this bar code reader calls the submit function immediately after putting the value in it. I want to stop bar code reader from calling the submit function because i have other fields to fill before submit. I want to know how can i stop bar code reader calling submit function j query.
$(":input").keypress(function(event){
if (event.which == '10' || event.which == '13') {
event.preventDefault();
}
});
I used this jquery to solve my problem to prevent it calling submit function
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With