How To Get Checkbox Value In jQuery
> Here we consider how to get the checkbox value in jQuery.
> Lets start with one example here.
> Suppose we have a
chakcbox inside form as shown below.
Find By ID

> Now for getting the value of Checkbox, we can make use of
jQuery Value Attribute.
> First of all find the CheckBox by using its
ID or
Class.
> And then use
jQuery Value attribute for getting the Value of Checkbox.
$(function () {
var result = $('#chkBoxID').val();
});
Find By Class

> If there is a Class in the Checkbox, we can get its Value as shown below.
$(function () {
var result = $('.chkBoxCls').val();
});
Without using ID or Class
>
Without using ID or Class, we can get the Value of Checkbox something like this.
$(function () {
var result = $("input[type='checkbox']").val();
});
Watch Video of this Content on Video Steaming