PHP Indonesia - Facebook | PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ | |
|
I have 500 checkboxes and i need that have one che... Oct 21st 2013, 20:08, by Olavi Allik | I have 500 checkboxes and i need that have one checkbox what check 300 check checkboxes, not all checkboxes.
$('table th input:checkbox').on('click' , function(){ var that = this; $(this).closest('table').find('tr > td:first-child input:checkbox') .each(function(){ this.checked = that.checked; $(this).closest('tr').toggleClass('selected'); }); });
It check all checkboxes, but how i can add there that can only 300 checkboxes? |
| | you should'nt use find if u want the selection more spesific, just use 'class' to describe every checkbox that u want to select | | |
|
Tidak ada komentar:
Posting Komentar