Most of the keys on the keyboard of a mobile smartphone produce a key code with the following code, however, "Next" and "Prev." no buttons:
$('#txtRegMobileNumber2').keydown(function (e) {
alert('Key pressed: ' + e.keyCode);
});
How can I capture a click on the Next button (equivalent to arrows in iOS) in javascript?
This other question may be a duplicate, but seeing how the code doesn't work for me, I still need help. I tried using e.which and keyup () to no avail.
m4gik source
share