开发者

key board selection for table sorter plugin for selecting rows

开发者 https://www.devze.com 2023-02-14 08:20 出处:网络
I am using table sorter plugin for sorting and displaying data in grid view.I was surfing to select a row using keyboard up,down arrow with multiple select but i could n\'t find it.

I am using table sorter plugin for sorting and displaying data in grid view.I was surfing to select a row using keyboard up,down arrow with multiple select but i could n't find it.

Can any one tell me how do i do i开发者_开发技巧t?


you could try using .focus() and when a row gets focus, give it a class of selected, then use jquery to do something with the selected classes:

$(".selectedClass").each(function(){
  // your code
});

Update (16:35 GMT):

Right this took sometime and bare in mind that this is a starting point for you, not a finished product. Check it out here - http://jsfiddle.net/u7PMe/

It makes use of .selectable() and keypress()

If you're happy that this is a good starting point please accept the answer.

0

精彩评论

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