/ Published in: jQuery

Jquery table tr checkbox selectable http://jqueryui.com/selectable/
required *jquery *jqueryui
Expand |
Embed | Plain Text
<table class="tablo"> <tr class="ui-widget-content"> <td><input type="checkbox" class="checkbox" /></td> <td>ömer</td> </tr> <tr class="ui-widget-content"> <td><input type="checkbox" class="checkbox" /></td> <td>faruk</td> </tr> <tr class="ui-widget-content"> <td><input type="checkbox" class="checkbox" /></td> <td>parlar</td> </tr> </table> <script type="text/javascript"> $(document).ready(function(){ $(".tablo").selectable({ filter: "tr", selected: function(evennt,ui) { $( ".ui-selected", this ).each(function(a,b) { $('.checkbox',b).attr('checked',true); }); } }); }); </script> #webuti #qmerfp
You need to login to post a comment.