net gridview. In the above code snippet theres an ASP.Net CheckBox chkAll to which a jQuery click event handler has been assigned. When the chkAll CheckBox is clicked, first I check whether the checkbox is checked or unchecked. How to check whether a checkbox is checked in jQuery? How can I disable first level checkboxes in November 21, [typecheckbox]") Home jQuery Asp.net enable/disable checkboxList with jQuery. In other words add the onclick event side like this: ChkAll.Attributes["onclick"] string.Format("jqCheckAll2(this.id, 0)", cbList.ClientID) Then change jqCheckAll2 to this: Function jqCheckAll2(id, name) ("" . Name).
I was knowing one way to find out but there are couple of other ways as well to find out if checkbox is checked using jQuery. In this post, you will find all different possible ways. Tags : check checkbox checked ASP NET MVC.Using jQuery 1.9.0, if I use .trigger(click) on a checkbox, the checked attribute does not get set. Is there any way else I can tell if a checkbox is checked then? Tags: c jquery asp.net-mvc razor.And it would be better to check the length of the checkboxes which are checked because you are saying atleast one checkbox can be checked means all are not mandatory to check. How to check whether a checkbox is checked in jQuery?MVC. Possible Duplicate: Check if checkbox is checked with jQuery I am a little bit confused about how the input of type checkbox works.