[jQuery] Re: Check all and uncheck all like the one in gmail

2008-12-10 Thread Donny Kurnia
ricardobeat wrote: > MorningZ code looks good, except that it doesn't check 'Check all' > automatically when you check all boxes by hand. > > You're creating lots of jQuery objects unnecessarily: > > var allBoxes = $('#main_table :checkbox:not(#checkall)'); > > $("#checkall").click(function(){

[jQuery] Re: Check all and uncheck all like the one in gmail

2008-12-10 Thread ricardobeat
MorningZ code looks good, except that it doesn't check 'Check all' automatically when you check all boxes by hand. You're creating lots of jQuery objects unnecessarily: var allBoxes = $('#main_table :checkbox:not(#checkall)'); $("#checkall").click(function(){ allBoxes.attr("checked",this.chec

[jQuery] Re: Check all and uncheck all like the one in gmail

2008-12-10 Thread MorningZ
Hope this quick example helps http://paste.pocoo.org/show/94677/ On Dec 10, 3:30 am, Donny Kurnia <[EMAIL PROTECTED]> wrote: > Hello, > > I have table with this structure: > > class="sortable-onload-5-6r rowstyle-alt colstyle-alt no-arrow" > id="main_table"> >   >     >       >       No