Check all Checkboxlist items on client-side
Please help me guys..
I have a checkboxlist which items are taken from the database.
I have also two buttons, one is to check all the items and the other is to uncheck it.
Also, there is a datagrid which items are loaded during page_load.
Now, every time I click either of the two buttons, yes, it will check or uncheck all the items, but the items of the datagrid becomes empty.
I have read some articles that maybe it's because of the postback thing. So instead of doing it server-side, I was advised to do it on the client-side.
My problem now is how can I uncheck or check all items in client-side?
Please help me.
I badly need it. Thanks a lot.