jQuery - find control using custom attribute
问题 I am using CheckBoxList control of Asp.Net. In order to get selected checkboxes i am adding a custom attribute for Value after binding the data to the checkboxlist. I am able to get the checked checkboxes in jQuery but i dont know how to find a particular checkbox using that custom attribute in the checkboxlist. here is the code: After databind in .cs file: foreach (ListItem li in cblRequestTypes.Items) li.Attributes.Add("itemValue", li.Value); To get the selected checboxes: $(":checkbox")