Do more with
function RefreshScore(checked) {
if ( checked )
alert("N/A is checked");
else
alert("N/A is NOT checked");
}
<input name="Section1Question1NAValue" id="Section1Question1NAValue" type="checkbox" onClick="RefreshScore();" checked />
function checkClick(cb) {
setTimeout(function() {
display("Clicked, new value = " + cb.checked);
}, 0);
}
<label><input type='checkbox' onchange=checkClick(this);'>Checkbox</label>
<script type="text/javascript>
function RefreshScore(checkbox)
{
if (checkbox.checked)
{
alert("a");
}
}
</script>
//markup
<input type="checkbox" <input name="Section1Question1NAValue" id="Section1Question1NAValue" onclick="RefreshScore(this)" />
Premium Content
You need an Expert Office subscription to comment.Start Free Trial