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 […]

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 […]

Drag and Drop HTML Table Rows Using jQuery

HTML tables are the preferred UI option for displaying data. Sorting, paging and searching/filtering are must-have functionalities for any HTML table with extensive data. These functions make HTML tables more user-friendly and efficient for the end user. In some cases one may require drag and drop functionalities for HTML table rows. Unfortunately, implementing drag and […]

How to Verify User Age with jQuery Code

If you've ever visited a site that's selling a product that has certain age restrictions (for example, a site selling or representing an alcohol brand might prompt you to verify that you're over 21 before you're allowed access to the site), you might have come into contact with an age verification form. It turns out, […]

How to Use jQuery’s .queue() Method

jQuery's .queue() method is one that is actually an effect method. The .queue() method can be used to show the length of the queue for a particular selected element. The queue is the list of functions in line to be executed on a single selected element. So if you've got an element with five different […]

12 Awesome jQuery Virtual Keyboard Plugins

A virtual keyboard is a component that allows a user to enter characters without a physical keyboard. It’s an alternative input mechanism for those who cannot use a physical keyboard, or for multi-lingual users who switch frequently between different character sets or alphabets. Virtual keyboards are commonly used as an on-screen input method on smart […]