GridView Up and Down Navigation using jQuery

前端 未结 2 1810
醉梦人生
醉梦人生 2021-01-22 23:17

I am trying to achieve GridView Up and Down keyboard navigation feature, using jQuery. I have written code for the same, but with a bug that it is working only once

2条回答
  •  野性不改
    2021-01-23 00:18

    you can replace your line with my lines only for

    (e.keycode==40)            $(this).closest('tr').next().find('td:eq('+$(this).closest('td').index()+')').find('input').focus();
    

提交回复
热议问题