Below code snippet explains how to find value of HTML input checkbox based on its Id using jQuery
<input type="checkbox" id="chk" value = "Yes" />
<input type="button" id="demo" value="Demo" />
<script type = "text/javascript" src = "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.1.min.js"></script>
<script type="text/javascript">
$("#demo").live("click", function () {
var value = $("#chk").val();
alert("Checkbox Value: " + value);
});
</script>
Explanation:
In the above example a click event handler has been assigned to the HTML input button. When the button is clicked, the value of the HTML input checkbox with id “chk” is determined using jQuery and displayed in alert.