$chkbox.is(":checked")
$("#oneTerminalCheckbox").click(function(){ displayTerminals($(this), testarry) });
function displayTerminals($chkbox, arry) { $chkbox.click(function(){ if($chkbox.is(":checked")) { ToggleCircleArray(arry); } else { ToggleCircleArrayRemove(arry); } }); }
$('#oneTerminalCheckbox :checkbox').change(function() { if (this.checked) { // the checkbox is now checked } else { // the checkbox is now no longer checked } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)