Avatar of Moti Mashiah
Moti Mashiah
Flag for Canada

asked on 

Jquery key press

Hi Guys,

I have mvc webapp and I'm trying to implement keypress function with jquery.

whet I'm trying to do is when user click on pagedown button it will click automatically on this button below:
 <input type="button" class="btn btn-sm btn-primary" @isr value=">>" onclick="GetRightItem(@Model.srno,'@Model.ponumber')" id="btnrightitem" />

Open in new window

I was trying to do something like this:(which didn't work).

jQuery(function ($) {
        $('#btnleftitem').keypress(function (event) {
            var keycode = (event.keyCode ? event.keyCode : event.which);
            keycode == '33' 

Open in new window


Avatar of undefined
Last Comment
Moti Mashiah

8/22/2022 - Mon