I am trying to get the value of a checkbox and I tried the following:
var closedIssue = $('#closed-' + rowCounter).val();
but it always return 'on'
Here is the checkbox
<input type="checkbox" name="closed-' + rowCounter + '" id="closed-' + rowCounter + '" />
What am I doing wrong?