How to check if checkbox is checked in jQuery?

jQuery Banner

It is very easy to check if a checkbox is checked in jQuery using the .is() or .prop() method of jQuery combined with the ‘:checked’ selector. There are other ways too like checking for the attribute checked value, however, they aren’t very reliable. The easiest and most stable way to check if checkbox is checked … Read more

How to check if an element is hidden in jQuery?

jQuery Banner

Whether you are new to jQuery or not, you must have come across a situation where you had to check if an element is hidden in jQuery. While this might sound like an easy task, it can get tricky. Don’t worry, you can check if an element is hidden in jQuery using the simple ways … Read more

How to remove multiple attributes in jquery?

jQuery Banner

Many a time you might have come across a scenario where you would want to remove multiple attributes from an element. For example, consider the following DIV : Now using jQuery’s removeAttr() method you want to remove both the data-id and data-module attributes. Many of us try to use multiple calls to the removeAttr() method … Read more

How to check jQuery version?

jQuery Banner

Many of us might have come across scenarios wherein we wanted to do something based on the version of the jQuery loaded. To be specific I’m talking about scenarios where one might want to know the version of jQuery programmatically and if the version was say 1.3.2 then load some other files too or do something … Read more

How to make placeholder work in IE ?

HTML5 MoreOnFew

One of the interesting features of HTML5 is the “placeholder” attribute. This new attribute has helped web developers save a lot of time as without it we would have had to write JavaScript code to simulate the same. But now with the arrival of placeholder attribute we just need to include this attribute in our input fields … Read more

Understanding jQuery animate function

jQuery Banner

jQuery’s .animate() function has helped many front end developers around the world to create web pages with custom animations and effects by just using combinations of jQuery , css and sometimes images. It helped us get rid of flash for most of the simple (and at times complex) animations. And I must say that this … Read more

How to generate QR Code using jQuery

jQuery Banner

QR Code or the Quick Response Code is a square-shaped matrix barcode that contains data encoded within it. QR Codes can be generated using JavaScript or jQuery too and in this article, we’ll concentrate on how to generate QR code using jquery. QR Codes have become very common in recent times especially among portable devices … Read more

What is the difference between .prev() , .prevAll() and .prevUntil() jQuery APIs ?

jQuery Banner

jQuery has made a drastic change in the way JavaScript are written. It has given more scripting power to the developers and the ability to “write less and do more” . Recently a friend of mine, who is a newbie Javascript developer, came across the .prev() , .prevAll() and the .prevUntil() APIs of jQuery. He … Read more