All jQuery Validation

jQuery code to check if all textboxes are empty

Find jQuery code to check if all the input type 'text' element or textboxes are empty or not. This is quite useful for validation. This jQuery code loops through all the textboxes and check their value. If value is empty then it adds a red color border to let user know that this field is […]
Read the rest of this entry »

Validate ASP.NET DropDownList using jQuery

In this small post, today I will show you how to validate ASP.NET DropDown List using jQuery. Let's declare a DropDownList. <asp:DropDownList ID="ddlList" runat="server"> <asp:ListItem Text="Select" Value="0" /> <asp:ListItem Text="jQuery" Value="1"></asp:ListItem> <asp:ListItem Text="JavaScript" Value="2"></asp:ListItem> <asp:ListItem Text="Prototype" Value="3"></asp:ListItem> <asp:ListItem Text="Dojo" Value="4"></asp:ListItem> <asp:ListItem Text="Mootools" Value="5"></asp:ListItem> </asp:DropDownList> To validate the dropdown list, all you need to do is […]
Read the rest of this entry »

Validate ASP.NET RadioButtonList using jQuery

ASP.NET RadioButtonList control is used to create a group of radio buttons, where all are rendered as an individual <input type=radio></input>. So in this post, I will show you how to validate ASP.NET RadioButtonList using jQuery. Let's declare a RadioButtonList. <asp:RadioButtonList ID="rdlList" runat="server"> <asp:ListItem Text="jQuery" Value="jQuery"></asp:ListItem> <asp:ListItem Text="JavaScript" Value="JavaScript"></asp:ListItem> <asp:ListItem Text="Prototype" Value="Prototype"></asp:ListItem> <asp:ListItem Text="Dojo" Value="Dojo"></asp:ListItem> […]
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 »

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 phone numbers using jQuery

Now days registration forms have phone numbers as mandatory field. But how to validate the entered phone number is correct or not? In this post, I will show you how to validate the phone number using jQuery. To validate the phone number, I have created a function which based on input, returns true or false. […]
Read the rest of this entry »

Responsive Menu
Add more content here...