A little dab'll do ya
Code Snippets
Home » Code Snippets » jQuery
- Add :nth-of-type to jQuery
- Add Non-Breaking Space on Title to Prevent Widows
- Adding/Removing Class on Hover
- Append Site Overlay DIV
- Automatically Discover Document Links And Apply Class
- Better Broken Image Handling
- Browser Detection + Apply Classes to HTML Element
- Calculate Distance Between Mouse and Element
- Change WMode with jQuery
- Check for Empty Elements
- Check if Checkbox is Checked
- Check if Element Exists
- Check if Element is inside Another Specific Element
- Check if Event was Triggered or Native
- Check if jQuery is Loaded
- Clear Default Search String on Focus
- Click Once and Unbind
- Combine Slide and Fade Functions
- Cycle Through a List
- Detect First Visible Element of Certain Class
- Disable / Re-enable Inputs
- Disable Parent Links in Nested List Navigation
- Display Browser and Version
- Display Last Tweet
- Display Latest FeedBurner Post
- Display Loading Graphic Until Page Fully Loaded
- Display Only First X Divs, Toggle Rest
- Equalize Heights of Divs
- Exclude $(this) from Selector
- Fade Image Into Another Image
- Fade One Image to Another Menu
- Fallback for CDN hosted jQuery
- Find all Internal Links
- Fire Event When User is Idle
- Fix Min/Max-Width for Browsers Without Native Support
- Fix Select Dropdown Cutoff in IE 7
- Fixing .load() in IE for cached images
- Fixing IE z-index
- Force iframe to Reload
- Get X, Y Coordinates of Mouse Within Box
- Highlight All Links To Current Page
- Highlight Related Label when Input in Focus
- Image Preloader
- Inputs That Remember Original Value
- Insert Element Between Other Elements
- jQuery Duplicate Plugin
- jQuery JSON getting with error catching
- jQuery Plugin Template
- jQuery Sticky Footer
- jQuery Tweetify Text
- jQuery Zebra Stripe a Table
- Keep Text Inputs in Sync
- Konami Code
- Link Nudging
- Load jQuery Only If Not Present
- Load Only a Section of a Page
- Loading jQuery
- Make Entire Div Clickable
- Make jQuery :contains Case-Insensitive
- Move Clicked List Items To Top Of List
- Open External Links In New Window
- outerHTML jQuery Plugin
- Partial Page Refresh
- Password Strength
- Persistant Headers on Tables
- Resize iFrame to Fit Content (Same Domain Only)
- Run JavaScript Only After Entire Page Has Loaded
- Scroll Page Horizontally With Mouse Wheel
- Search/Replace
- Select Element Only if Children are Not Animated
- Select List Item Only If Doesn’t Contain Another List (and is top level)
- Serialize Form to JSON
- Set/Clear Default Input Value
- Show Most Recent Flickr Uploads
- Show Most Recent Picasaweb Uploads
- Shuffle Children
- Shuffle DOM Elements
- Simple Auto-Playing Slideshow
- Simple jQuery Accordion
- Sliding Background Links
- Smarter Event Binding
- Smooth Scrolling
- Styled Popup Menu
- Target Only External Links
- Test if at least one checkbox is checked
- Toggle Text
- Trigger Click on Input when Label is Clicked
- Triple Click Event
- Underline Individual Words
- Validate Age
- Window load event with minimum delay
- Working with Attributes