Archive for July, 2012

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 »

Easy Tip to write clean and manageable jQuery Code

jQuery gives amazing power to make things simple and easy to implement. For jQuery to work, we need to put all the code in $(document).ready() function and there can be many $(document).ready() function in a single page. But putting everything inside $(document).ready() function may make your code look ugly, not understandable, unmanageable and sometimes buggy. […]
Read the rest of this entry »

jQuery Mobile | 10 Easy Steps to Getting Started!

Now days smartphones and tablets are becoming popular and can be found all over the place today, the need for mobile version of the website is rises greatly. There are many mobile framework available in market but one of the most popular framework is jQuery Mobile framework. jQuery Mobile is a touch-optimized web framework for […]
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 »

Add Hyperlink to images using jQuery

To Add Hyperlink to the image, we normally use <a> tag that contains image tag to show the image. But assume there are 100 images and you need to add hyperlink to every image. Putting 100 <a> tag with each image is time consuming and painful. But jQuery can make your task painless. So in […]
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 »

Responsive Menu
Add more content here...