jQuery

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

in jQuery

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

in jQuery

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

in jQuery

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

in jQuery

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

in jQuery

JQuery Plugin Boilerplate

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

in jQuery

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

in jQuery

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

in jQuery

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

in jQuery

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

in jQuery

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

in jQuery

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

in jQuery

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

in jQuery

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

in jQuery

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

in jQuery

Javascript isNumeric Function

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

in jQuery

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

in jQuery