FAQ Database Discussion Community


Prevent a read-only checkbox from calling a event handler?

jquery,asp.net-mvc,checkbox,checkboxfor
I have a list of checkboxes with the same syntax below, some of them are read-only: @Html.CheckBoxFor(model => model.SrsSettingList[i].LeftPickup, new{ @class= "chkSRSPickup"}) First I want to mention that I cant use "disabled" atrribute in this case. Please dont tell me to do that. Below is my event handler when I...