key board selection for table sorter plugin for selecting rows
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.
精彩评论