Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Next" button on Android Numeric keypad

I am wondering about how to detect "Next" button event on android numeric keypad using Jquery. Please give me solution how to trigger that button event.

like image 740
Ramakrishna Avatar asked Apr 09 '26 07:04

Ramakrishna


1 Answers

You can detect the next keyboard press by using the following bind in JQuery:

$('input').on('keydown', function(e){
    if(e.which === 9) {
        //your code here
    }
});

The 'next' button emulates the tab keypress event on a keyboard, which is key code 9. Unfortunately, keypress and keyup events do not detect the next key event, so you need to bind it on keydown.

like image 73
Rum Jeremy Avatar answered Apr 11 '26 20:04

Rum Jeremy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!