All CheckBoxList

Validate ASP.NET CheckboxList using jQuery

ASP.NET CheckBoxList is group of checkboxes which is used to create a multi-selection check box group. In this post, I will show you how to validate ASP.NET CheckBoxList using jQuery. Let's declare a CheckboxList. <asp:CheckBoxList ID="CheckBoxList1" runat="server"> <asp:ListItem Text="Singing" Value="Singing"></asp:ListItem> <asp:ListItem Text="Writing" Value="Writing"></asp:ListItem> <asp:ListItem Text="Travelling" Value="Travelling"></asp:ListItem> <asp:ListItem Text="Blogging" Value="Blogging"></asp:ListItem> <asp:ListItem Text="Sports" Value="Sports"></asp:ListItem> </asp:CheckBoxList> As you […]
Read the rest of this entry »

Validate HTML CheckboxList using jQuery

In yesterday's post, I had posted about how to "Validate ASP.NET CheckboxList using jQuery", but pure HTML checkbox list is slightly different. The main problem is that it can't be accessed using ID because every checkbox will have different ID. But they share one common attribute which is "name". So while accessing checkboxes in jQuery, […]
Read the rest of this entry »

jQuery to limit number of checkboxes checked by User

Many time we need to limit the selection of checkboxes users can select or in other words users are not allowed to select more than a number of checkbox to give their choice. For example, out of all client side script language, user can select maximum three where he is best. Related Post: Check if […]
Read the rest of this entry »

Disable odd checkbox of Checkbox list using jQuery

In this post, find jQuery code to disable all the odd checkboxes in Checkbox list. When I say "odd" means checkebox placed at odd index. This can be done easily via ":odd " selector. But there is an interesting thing here. Take a look at below image. Now as per this image the odd checkboxes […]
Read the rest of this entry »