I'm doing a check from a check box to see if it has a type="radio" selected. The problem is that the check is performing the calculation even when I uncheck the check box. I took the following test to see what was happening.
console.log($("input[type='checkbox'][id='SavePaper']").is(':checked') );
The test result was:
true false
false true
true false
Follow the image
WhydoesthishappenandhowdoIresolveit?
Update:checkboxcode
<div class="md-checkbox" onclick="getValue()">
<input type="checkbox" id="SavePaper" name="SavePaper" class="md-radiobtn">
<label for="SavePaper">
<span class="inc"></span>
<span class="check"></span>
<span class="box"></span>
</label>
</div>