X

All posts in: JQuery

Using the jQuery .load() Method

jQuery’s .load() method is used to load data from a server (from a directory within your domain) and then place the loaded data into your selected element. The load method syntax looks a lot like many of the other commonly used jQuery ...

Screen Shot 2016-11-06 at 2.31.10 PM

jQuery Image Viewer Plugins with Lightbox

Building your own jQuery image viewer or image gallery plugins is definitely doable…but it’s also a pretty time consuming process. If you don’t have the time to write your own script, check out any of these jQuery image viewer ...

Show Image Preview for External Images Using jQuery

You must have seen on many websites that as soon as you enter any image URL, the image preview is displayed on the screen. This is a very good idea to let your user know exactly which image they are referring to. This can be easily done via jQuery. ...

Top Tips for Optimizing Your jQuery Selectors

When your jQuery runs slow as a result of poorly organized or clunky code, it can really negatively affect your users’ experience. One easy way to optimize your jQuery and to help avoid slow-running code is to make sure that the selectors are ...

Quick Tip: How to Load jQuery Conditionally

Many developers like to link to an externally hosted jQuery library, like for example Google’s jQuery library (http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js), but the problem with linking to an external jQuery library is that ...

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 ...

Page 5 of 18« First...34567...10...Last »