How To Reverse jQuery SlideUp And SlideDown

By default jQuery slideDown will obviously slide the element down to display the contents and slideUp will slide the element...

Read More


jQuery .html() Get Containing Element

Whenever you need to get all the contents of a HTML element in jQuery you can use a handy function...

Read More


jQuery Build Dropdown From AJAX

In a recent project I had to correct a lot of AJAX requests that will populate a HTML select dropdown,...

Read More


Load Scripts Dynamically With jQuery

A common tactic to help speed up your website is to use a technique called lazy loading which means that...

Read More


Changing The Element Size With jQuery

When you are changing the size of an element using jQuery there are two methods that you can use to...

Read More


Using jQuery In The WordPress Admin Area

When you are coding in the WordPress admin area, there may be times when you want to code some functionality...

Read More


JQuery Plugin Boilerplate

In a previous article I pointed out a great resource for starting your jQuery plugins. This resource is called Starter...

Read More


Use jQuery To Highlight Active Menu Item

If you are using menus on your web designs it's a common web design technique to highlight the current page...

Read More


Get First X Number Of Elements With jQuery

Here is a quick snippet for getting the first lot of elements from a jQuery object. Lets say you want...

Read More


Get Select Box Value With jQuery

Use the following jQuery snippet to get the value of the selected option in the select box. First create a...

Read More


Handle Image Loading Errors With jQuery

If an image can't load correctly in the browser it will do a number of things depending on what browser...

Read More


How To Disable Enter Key On Forms

On HTML forms if you are filling out a text box and press the enter key it will submit the...

Read More


Fallback on Local jQuery If CDN Fails

Many big websites are now offering CDN services for things like jQuery. Google offers a few of the biggest Javascript...

Read More


Toggle Show/Hide HTML Element

Below is different ways you can show or hide content. Javascript Is a function using raw Javascript which is passed...

Read More


Validate Date Of Birth And Set Age Limit In jQuery

Using jQuery you are able to easily work out the age of a person by the date of birth. If...

Read More


Add and Remove Options in Select using jQuery

Removing an item from a select box using jQuery JQuery is a easy way of using JavaScript reducing the time...

Read More


Javascript isNumeric Function

When working with user inputs in web pages it is important that you validate all the inputs, this is so...

Read More


Check to see if a element exists in jQuery

In raw javascript using when dynamic elements you need to check to see if the element exists before you perform...

Read More