Due to some reasons i m dynamically creating a checkbox in a Grid..
Also i m dynamically creating a Button in the same Grid.
On this particular button click i need to check if the checkboxes are checked or not.
If the checkboxes are checked i should uncheck it.and vice versa.
Is it possible to achieve this in javascript?
Yes it is possible.
No matter the checkboxes are created dynamically or not, this code will still work because it does not even need any
idorclass.For IE:
Ultimate jQuery solution!
LIVE DEMO: http://jsfiddle.net/DerekL/jfeAd/