开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜