开发者

Need to disable JQuery Table navigation when focus in on an input field

开发者 https://www.devze.com 2022-12-18 14:50 出处:网络
I need to disable table navigation when the fo开发者_运维技巧cus is on an input field. I could bind to the keypress/keydown events and do it.

I need to disable table navigation when the fo开发者_运维技巧cus is on an input field. I could bind to the keypress/keydown events and do it. Does table navigation support something for this? Any other suggestions welcome.


From the looks of the documentation it appears that you could doing something like:

$(":input.myField")
  .focus(function(){
    $.tableNavigation({disabled:true});
  })
  .blur(function(){
    $.tableNavigation({disabled:false});
  });

This assumption is based off of the following statement in the documentation:

To update the used options just call jQuery.tableNavigation again with the new options.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号