All jQuery Codes

Load CSS files using jQuery

Today I got into a situation where I need to load CSS file dynamically using jQuery. My code was working in all the browsers except IE. But after spending couple of minute I was able to make proper cross browser solution. Here is a piece of code that will load CSS using jQuery. $(document).ready(function(){ $("head").append("<link>"); […]
Read the rest of this entry »

Show jQuery DatePicker on button click

The default behavior of jQuery UI Datepicker control is to show Datepicker on click to the element to which it is bind. But sometimes it is required to open the datepicker control on click of button. So In this post, I will demonstrate how to show jQuery DatePicker on button click. To achieve this, one […]
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 »

Check if radio button is checked or selected using jQuery

Yesterday I need to find out if radio button is checked/selected or not using jQuery. I was knowing one way to find out but there are couple of other ways as well to find out if radio button is checked using jQuery. In this post, you will find all different possible ways. 1. First Way: […]
Read the rest of this entry »

Get URL Parameters using jQuery

In today's post, you will see small piece of code but really effective and useful. That is how to get URL Parameters using jQuery. Now days every server language provide direct method to get the URL parameters but this is not straight forward with jQuery. Earlier I had posted about Get Page Title and URL […]
Read the rest of this entry »

Show loading image while Page is loading using jQuery

Web pages takes time to load and sometimes when page is heavy (full of images) then it takes more time to load. Would it not be nice to show loading images or message while your page is loading. It creates responsive webpage and gives nice user experience. The user will come to know that something […]
Read the rest of this entry »

Responsive Menu
Add more content here...