This is easy with JS. <input type="checkbox" id="select_all"/>
<script> jQuery("#select_all").click(function() { var checkedStatus = this.checked; jQuery("input[type=checkbox]").each(function() { this.checked = checkedStatus; }); }); </script> On Thursday, 18 July 2013 06:59:42 UTC-5, lucas wrote: > > hello, > > i have a fairly complex form and under the form is a sublist of names with > checkboxes next to them. and then there is another sublist with a > different set of names. > > what is your best advice to check or uncheck all names under each sublist > of names without submitting back to the webserver, which i am suspecting a > client-side javascript or ajax or something of the like. i would like to > stay with native web2py 2.5> so that i am not straying far from the ranch. > > thanx in advance, lucas > -- --- 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/groups/opt_out.