my requirement is if i click check in a a certain checkbox in vf page then corresponding 4 cheboxes like a,b,c,d also checked automaticaly.can anyone provide me the code for this..!! thanx in advance..:)
no need in js here. use properties and rerender. Add an action support to the "select all" checkbox and when it is checked - rerender whole checkboxes block. Of course you should set values in the controller before rerender.
I mean VROKS answer with a code =) Valerijs Prokudins is just my another acc in one of the projects, and I post under this account accidentally :) Thanks
All Answers
http://www.sfdcpoint.com/salesforce/select-all-checkbox-using-javascript-in-visualforce-page/
Add an action support to the "select all" checkbox and when it is checked - rerender whole checkboxes block. Of course you should set values in the controller before rerender.
page:
and the controller:
hope this will help
Thanks