JQUERY SNIPPETS

Absolute Positioning an Element at Its Current Position

Add and Remove Select Options

Add a Static Function to Your Plugin

AJAX - Get Whole Site

AJAX - Simple Request

Alternating Styles on Table Rows

Apply Sequential Effects

Attach a Handler to Many Events

Auto Tabbing Based on Character Count

Build Drop-Down Menus

Center an Element Within the Viewport

Cloning DOM Elements

Configure jQuery Not to Conflict with Other Libraries

Constrain Text Input to Specific Characters

Convert a Selected jQuery Object into a Raw DOM Object

Create a Horizontal Accordion

Cross-Fading Rotating Images

Counting DOM Elements

Create Custom Tooltips

Custom Easing Methods for Effects

Custom "Selected" Event

(De)select All Checkboxes Using a Single Toggle

(De)select All Checkboxes Using Dedicated Links

Determine the Exact Query That Was Used

Determine Whether an Element Is Within the Viewport

Determine Whether Elements are Currently Being Animated

Disable All Effects

Disable and Enable Form Elements

Display a Simple Modal Window

Display Remaining Character Count

Document Ready for Dynamically Loaded jQuery

Executing jQuery Code After the DOM Has Loaded

Expand an Accordion

Filter a Wrapper Set of DOM Elements

Find Descendant Elements Within the Currently Selected Wrapper Set

Find the Dimensions of the Window and Document

Find the Dimensions of an Element

Find the Offset of an Element

Focus a Text Input by Default

Form Validation Using jQuery Validate

Get and Set HTML Content

Get and Set Text Content

Get the Index of an Item in a Selection

Getting Notified when jQuery Methods are Called

Include Private Functions in Your Plugin

Include the Previous Selection with the Current Selection

Loop Through a Set of Selected Results

Make a Unique Array of Values from an Existing Array

Make Elements Visible by Sliding Them Up

Navigate a File Tree Expander

Override Default Options for Your Plugin

Pass Options into Your Plugin

Perform an Action on a Subset of the Selected Set

Reduce the Selection Set to a Specified Item

Remove a Whole Set of Event Handlers

Removing DOM Elements

Replacing DOM Elements

Return to the Prior Selection Before a Destructive Change

Reuse a Handler Function with Different Data

Scroll an Element into View

Select DOM Elements Within a Specified Context

Select Radio Buttons Automatically

Set DOM Element Attribute

Sliding and Fading Elements In and Out of View

Sliding Panels

Stop and Reset Animations

Submit a Form Using AJAX

Support the Metadata Plugin

Tab Through a Document

Traverse the DOM Based on Your Current Context to Acquire a New Set of DOM Elements

Trigger Specific Event Handlers

Use Method Get() to Reverse an Array

Use the $ Shortcut in Your Plugin

Utility - Attaching Objects and Data to DOM with jQuery.data

Utility - Combine Two Arrays with jQuery.merge

Utility - Detecting Features with jQuery.support

Utility - Extend Objects with jQuery.extend

Utility - Filter Arrays with jQuery.grep

Utility - Filter Out Duplicate Array Entries with jQuery.unique

Utility - Iterate and Modify Array Entries with jQuery.map

Utility - Iterate Over Arrays and Objects with jQuery.each

Utility - Remove Whitespace from Strings or Form Values with jQuery.trim

Utility - Test Callback Functions with jQuery.isFunction

Write Your First jQuery Plugin


© 1997-2017 codehacker.com - All Rights Reserved            RapidSSL