6 Lightweight jQuery Plugins for Fixed Elements

Giving fixed positioning to elements is a great way to keep them visible on the page no matter how much or how far a user scrolls. Fixed positioning can be achieved easily using CSS -- it only takes one line of code to change the position of an element from static or relative to fixed. […]
Read the rest of this entry »

How to Use jQuery’s Mouse Methods

jQuery has 4 event methods that have to do with cursor movement. The methods are .mouseenter(), .mouseleave(), .mouseup() and .mousedown(). All of these methods can be used to trigger events and execute code based on when and where the user's cursor moves. In terms of syntax, they're fairly simple and straightforward to use, but they […]
Read the rest of this entry »

jQuery Snippets: Using jQuery to Check All Boxes

When you've given your users a ton of checkbox input fields that they have to manually check themselves, it's always a nice gesture to give them the option to check all the boxes at once by simply selecting one "Check All" checkbox -- one box to rule them all. Not only does a check all checkbox […]
Read the rest of this entry »

3 Ways to Use jQuery to Detect AdBlock

Ad blocking software is becoming increasingly prevalent among internet users, for a number of reasons. The most important of which is that, often times, ads can really decrease a user's experience. They can be obnoxious, and they can be slow -- and not just slow down your webpage, but also a user's entire browser or […]
Read the rest of this entry »

Using jQuery to Count Child Elements

If you ever find yourself needing to know how many child elements an HTML element has, you're in luck, because there's a jQuery function for that. There are actually a few different ways you can go about doing this. The first is really simple and straightforward, and will count all the children elements of an […]
Read the rest of this entry »

Useful jQuery Code Snippets for Working with Images

Images are an essential part of any website and sometimes working with images for various functionalities can be quite challenging. However, if you know where to look you will often find that the feature you are trying to implement has already been created by someone else and is available for reuse. This post provides a […]
Read the rest of this entry »

Responsive Menu
Add more content here...