Its not working like toggle though On Tuesday, March 12, 2013 at 6:44:09 AM UTC+5:30, Massimo Di Pierro wrote: > > <button onclick="jQuery('input[type=checkbox]' > ).each(function(k){jQuery(this).attr('checked', 'checked');});">select > all</button> > > On Monday, 11 March 2013 19:01:50 UTC-5, Jack wrote: >> >> Hi all, >> >> I was playing around with selectables in the grid and smartgrid and found >> this example code in the mailing list: >> >> selectable = lambda ids: delete(ids) >> form=SQLFORM.grid(query, >> selectable=selectable) >> >> def delete(ids): >> to_delete=db(db.tabla.id.belongs(ids)) >> to_delete.delete() >> >> >> It enables a checkbox in front of each row and a button to delete the >> selected rows. This is working as expected but I was wondering is there a >> way to enable a select all checkbox? >> I did some search but couldn't find anything. Is there something I'm >> missing? >> >> Thanks >> >
-- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.