Welcome To Snipplr


Everyone's Recent jQuery Snippets



1 ... 10 11 12 13 14 ... 30
If included in a global javascript, whenever an input receives focus it will clear the default value. If the element loses focus without any user input then it will put the default value back in there. Useful for when you aren't using <label> a...
0 1401 posted 15 years ago by accelm
simple jquery accordion
0 1306 posted 15 years ago by jelontok
This is a plugin for creating a dynamic video gallery. Call videos by rel tag, including title.
0 1780 posted 15 years ago by vagrantradio
When applied to a page, this script converts any sub-menus created in the Wordpress menu editor into drop-down menus without having to specify each menu item individually. Fades in sub-menu of selected list item quickly, then fades out when leaving l...
2 1561 posted 15 years ago by happynuclear
0 1297 posted 15 years ago by joshangell
This function will insert items into an orders alphabetically (assuming it's already alphabetical). Initially design to make a smooth single page load/save feature that sotred everything in drop down lists, you guessed it, alphabetically. Can simply...
0 1751 posted 15 years ago by FatFolderDesigner
Focus and keypress events determine when to hide, show, or dim a label. Use in tandem with the following HTML/CSS: HTML ---- <li> <label>First Name</label> <input> </li> CSS ---- li { position: relative; } la...
0 1337 posted 15 years ago by mikemetcalf
If your HTML form fields have a 'watermark' default value, it will be removed when the field is focussed and replaced if focus is lost (and the user has left the field blank). To use give your form field a class of 'default-value'
3 2096 posted 15 years ago by f6design
0 1702 posted 15 years ago by Alwaison
2 1443 posted 15 years ago by coder_
A simple way to filter lists or tables that uses a new "Contains" (note capitalization) selector to clean up the code a bit. Three examples are below, first sorts through a list, second a table, third a tabe and it correctly the alternating row color...
0 1889 posted 15 years ago by FatFolderDesigner
credit: http://www.west-wind.com/weblog/posts/519980.aspx
1 1535 posted 15 years ago by crypticsoft
add this line: Cufon.replace('a', { hover: true }); before your actual cufon replace.
2 1393 posted 15 years ago by Savio
Updated code (December, 2012) to get a tweet from a user's twitter timeline using JSON and jQuery
3 2195 posted 15 years ago by eddequincey
Cache control when pulling in scripts, redefined "getScript" function
0 1653 posted 15 years ago by lamebollock
5 1881 posted 15 years ago by vestimir
0 1336 posted 15 years ago by Sullan
0 1630 posted 15 years ago by tcelestino
1 1752 posted 15 years ago by Savio
3 1699 posted 15 years ago by batamire
Used on `<input>`'s and `<textarea>`'s Several jQuery functions for getting the current cursor position and setting the current cursor position. Also allows for selecting text in a certain range. Usage: <pre> $("input[name='username']").getCu...
0 1292 posted 15 years ago by crutzdesigns
0 965 posted 15 years ago by muzafarova
This function allows you to pass any div anchor tag as a parameter to scroll to. You can easily add easing after the 'duration' parameter in the jQuery animation function.
8 2400 posted 15 years ago by ksnagra
This snippet will allow you to create a template browser for when you need to show multiple pages quickly. simply add the new pages into the select dropdown options and you're away.
0 1116 posted 15 years ago by demwunz
1 ... 10 11 12 13 14 ... 30