I have this one checkboxthat has a value of 1 .
<input type="checkbox" name="option_1" id="checkbox_1" value="1">
I also use this method to do check / unchecked.
$('input[id^="checkbox_"]').not('#checkbox_all').click(function () {
$('#checkbox_all').prop('checked', false);
});
I need to somehow get the "VALUE" clicked checkbox. Therefore, in this case it should be 1 .
Any clues how to do this?
Thank!
source
share