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

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