Intermediate

How to Use jQuery’s .one() Method

jQuery's .one() method is a really cool method that, when used, will trigger a function attached to a certain selector or element only once. Normally with jQuery methods, they will occur as many times as the trigger event is triggered, but when you use the .one() method, the code that it's attached to only gets […]
Read the rest of this entry »

Using jQuery to Check All Boxes

If you want to include a "check all" option in any of your projects, it's actually pretty easy to do using jQuery. The snippet below demonstrates how to include a check all button that will check all of the inputs that fall within one fieldset tag. To start, make sure your HTML looks something like […]
Read the rest of this entry »

5 Awesome Free jQuery Calendars for Your Next Project

There are so many free jQuery calendar projects out there that it can definitely be overwhelming when it comes to choosing one to include in your next project, which is why we've compiled this handy list of hand-picked FREE and lightweight jQuery calendar plugins. Each plugin on this list is easy to install, user-friendly, and […]
Read the rest of this entry »

jQuery Snippet: Enable Submit if Input Field has Value

A cool thing that jQuery allows you to do is enable and disable certain elements based on particular conditions. The following snippet shows you how to enable a submit button that has been disabled if text has been entered into an input field. If the input field has a value, then the form can be […]
Read the rest of this entry »

jQuery.parseJSON vs JSON.parse

JSON.parse() and jQuery.parseJSON(), both are used to parse a JSON string and returns resulting JavaScript value or object described by the string. jQuery.parseJSON() is available only when jQuery library is used where JSON.parse() is JavaScript's standard built-in JSON object method. So the question is if jQuery library is used, then which one should be used […]
Read the rest of this entry »

Snippets: Disable Scroll Using jQuery

Most developers probably wouldn't want to disable scroll on their pages, but of course, there are always exceptions to any rule, and there are a number of reasons that scroll may need to be disabled. It could be for design or functionality reasons, or it could just be the result of a click event or […]
Read the rest of this entry »

Responsive Menu
Add more content here...