I have this code to put it in array when user checks the check box.. but when user unchecks the check box how do I need to remove from the Array?
$(function () {
var listval = [];
$('input[name="checkedRecords"]').bind('click', function () {
if ($(this).is(':checked')) {
listval.push($(this).val());
}
else {
//How to remove the Unchecked item from array..
}
});
});
Thanks in advance.