All jQuery Tips

jQuery and HTML

jQuery and HTML. Yes, in today post, I will show you some of the jQuery methods that you can use to change the HTML of the DOM elements. These methods are useful and easy to understand. To change HTML Content The html() method changes the contents (innerHTML) of matching HTML elements. $("div").html("jQuery By Example Rocks!!!"); […]
Read the rest of this entry »

CSS Class, Attribute, Property and jQuery

In this short post, I will show you how to add/remove attributes or properties to DOM elements and how to add/remove CSS classes from DOM elements using jQuery. Also, how attribute and properties are different in jQuery. Before jQuery 1.6 there was no concept of property. Everything was treated as attributes. But now you must […]
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 »

What is Chaining in jQuery?

You may have come across a term "Chaining" in jQuery. But do you know what is Chaining in jQuery? There is no specific definition available for this term in jQuery but it is also not different from the general meaning of Chain. In general term Chain is, "A connected flexible series of metal links used […]
Read the rest of this entry »

Fix for setting CSS background image using jQuery

Yesterday I got into a very silly problem. I need to change background image of the div element using jQuery. And to change the background image, I was using jQuery CSS method which takes key as CSS attribute and value as value of that attribute. So, to change the background image I was using below […]
Read the rest of this entry »

Responsive Menu
Add more content here...