Welcome To Snipplr


Everyone's Recent jQuery Snippets



1 ... 11 12 13 14 15 ... 30
See also the [plain JavaScript version](http://snipplr.com/view/41717/default-value-for-input-fields/).
1 1830 posted 15 years ago by riddla
6 2256 posted 15 years ago by dropthenerd
toggle function for showing/hiding LI elements that slide up/down into the UL title box
0 1366 posted 15 years ago by mckewans
0 1361 posted 15 years ago by davebowker
Just wack this in the footer followed by the company name and you're copyright will always be up to date
0 1502 posted 15 years ago by SideProject
0 1512 posted 15 years ago by davebowker
The option elements in the original select may provide an image and a second line of text by using a data-img and a data-info attribute.
7 2447 posted 15 years ago by peckham
When running live filters on large, long scripts you can get old, stale results replacing your new, fresh ones. After all, a search for everything containing 'S" in a large database of city names can take a lot longer than "Seattle", so your script g...
2 2204 posted 15 years ago by FatFolderDesigner
The regular expression must be in non-literal notation; so replace all backslashes with two backslashes (e.g. ^\w+$ -> ^\\w+$). All searches are case insensitive; you can change this by removing the ‘i’ flag in the plugin.
1 1780 posted 15 years ago by aelesbao
_off を _on に置換してロールオーバー _on 画像をプレロード
0 762 posted 15 years ago by tsucharoku
This is the code necessary to grab the title attribute from the link/images selected and then parse it for use in the title field of a FancyBox popup.
0 1202 posted 15 years ago by davidcfox
$('li.current_sub').prevAll("li.par_cat:first"); Tested it with your markup: $('li.current_sub').prevAll("li.par_cat:first").text("woohoo"); will fill up the closest previous li.par_cat with "woohoo".
1 1719 posted 15 years ago by lamebollock
0 1731 posted 15 years ago by metoikos
Simple jQuery script to load additional content when you near the bottom of the page, same sorta thing Twitter does (although I originally programed it for a different use). Only thing of remark is the fact that it stores the current highest loaded v...
4 2773 posted 15 years ago by FatFolderDesigner
The uploaded file is attached to the "pid" of the recently inserted project. the "pid" variable is retrieved from the database after the project has been entered
2 1885 posted 15 years ago by danhanly
This one is simple yet very useful. You can do alternating row colors with 2 simple lines of jQuery
4 1621 posted 15 years ago by BlueIceStudios
1 1783 posted 15 years ago by BlueIceStudios
0 1626 posted 15 years ago by BebenKoben
if you are using jquery 1.4 you can simple do
1 1526 posted 15 years ago by BlueIceStudios
1 1432 posted 15 years ago by Some0ne
1 ... 11 12 13 14 15 ... 30