how to get checked and unchecked check box values in an array using javascript/jquery.
I have a list of check boxes.
Below is the sample code.
<input type="checkbox" class="chkCountry" value="1" checked="checked" />India
<input type="checkbox" class="chkCountry" value="4" checked="checked" />China
<input type="checkbox" class="chkCountry" value="2"/>Pakistan
<input type="checkbox" class="chkCountry" value="3"/>Japan
Here i want to get the checked values in a array unchecked values in another array.
And if again i want to unchecked the checked values(here India and China), i want to get the values(1,4) in another array.