jQuery Prefixes: jQuery vs. $

It's a really common practice in jQuery to use the dollar sign ($) prefix with your methods, like this: $(document).ready(function(){ $(#myDiv).slideUp(); }) The above code would make the div with the ID #myDiv slide up when the page loads. But that's not the only way to write that function. Sometimes you might see it written […]
Read the rest of this entry »

Create a Simple Notification Bar on Top of Page Using jQuery

Notification bars on top of a page is a feature to display important messages to catch a website visitor’s attention. There are plenty of plugins available to display notification bars, but it’s not advisable to use a jQuery plugins if the same task can be completed via simple jQuery code, as adding a plugin will […]
Read the rest of this entry »

Using the .find() Method to Optimize Selectors

Sometimes trying to use an extra complicated selector with jQuery can slow your code down a bit. If you're trying to use a selector with multiple classes and IDs, for example, things can get a little slow. A nice jQuery trick to avoid this slowing down of your code is to employ the .find() method […]
Read the rest of this entry »

Quick Summary of What’s new in jQuery 3.0

jQuery 3.0 is the newest version of jQuery and it’s already out. There are many new features, bug fixes and deprecations of old methods. In this post, find a quick and short summary of some of the newest features and bug fixes. For loop syntax changed jQuery 3.0 introduces new syntax for “for loop”. With […]
Read the rest of this entry »

Converting Your Scripts Into a jQuery Plugin

We feature a lot of plugins on this site, so chances are if you're looking for a particular type of plugin, you'll be able to find that here. Just in case, the following is some code that will help you convert your jQuery scripts into a plugin that can be used by other developers on […]
Read the rest of this entry »

Create a Simple Back to Top Button with jQuery

We've all seen those handy little "back to top" buttons, the one that usually appear at the bottom of a page once a user starts scrolling that, when clicked, will smoothly return the page back to the top position. Insert the following snippet into your projects to add a back to top button to your […]
Read the rest of this entry »

Responsive Menu
Add more content here...