Welcome To Snipplr


Everyone's Recent jQuery Snippets



A jQuery plugin that will add a 'new' icon next to files that are newer than X amount of days.
1 2450 posted 16 years ago by neal_grosskopf
I notice a lot of addClass/removeClass.. thought maybe I'd post an example on how to simplify that....
0 1903 posted 16 years ago by quickredfox
Taken from TVIDesign's 25 Excellent jQuery tips
0 1685 posted 16 years ago by nd6
Found at the source link - stealing and indexing :)
2 1633 posted 16 years ago by cyberhobo
// How to use variables // within jQuery selectors
1 1308 posted 16 years ago by radarseven
From Liviu HolhoÅŸ - Blog http://blog.liviuholhos.com/javascript/add-a-favicon-near-external-links-with-jquery
4 2238 posted 16 years ago by batamire
1 1575 posted 16 years ago by jonniespratley
http://code.google.com/p/jquery-jtwitter/ for examples.
3 1680 posted 16 years ago by jonniespratley
Sometimes I want simple tabs without all the packaging of jQuery UI with a theme. This does the job with just jQuery 1.2.6, and should work with later versions.
3 1982 posted 16 years ago by cyberhobo
adapted from the fantastic „Learning jQuery 1.3“ book http://www.packtpub.com/learning-jquery-1.3/book
0 1724 posted 16 years ago by cfleschhut
Detects all external/outgoing links, adds class, & adds target = _blank. When using a strict doctype, this method is valid when using target manipulation.
1 1533 posted 16 years ago by dsntos
Select the first and last item in an unordered list. As an example, I add a CSS class to each. In WordPress, it's not so easy to get wp\_list\_pages() to generate these classes. jQuery provides an easy out for javascript-enabled clients.
0 1976 posted 16 years ago by cyberhobo
inspired by boagworld.com
1 1495 posted 16 years ago by cfleschhut
0 1051 posted 16 years ago by hungry
If you want to trigger an event on an matched element and that element may be introduced into the DOM from an Ajax request, you can still match against it by using the livequery plugin and the following code.
1 1599 posted 16 years ago by Meander365
This slide show was created by Jon Raasch @ JonRaasch.com. Just images. Look for Slide show #2 for a slide show using DIVs. hamiltopia_jquerySlideshow2
3 2284 posted 16 years ago by thehamilton
Simple jQuery Slideshow from JonRaasch.com
1 1822 posted 16 years ago by thehamilton
To prevent multiple submit from sending more than one request, bind the submit event and store a "disabledOnSubmit" data. Next time the event "submit" will be fire, the following jQuery code will return false. All submit buttons are also disabled (...
9 2170 posted 16 years ago by dalexandre
Sometimes you click a link like faq.html#item5 and, after the browser jumps you to the anchor, you have trouble spotting the item you're looking for. anchorAway is a little function that helps you call a function on anchored items, maybe something li...
0 1518 posted 16 years ago by dougunderscorenelson
7 1740 posted 16 years ago by jamesming
0 1447 posted 16 years ago by jonniespratley
1 1697 posted 16 years ago by jonniespratley
function as jquery plugin to test if selector is found on the current page. Sample use: if ( $("#myID").onpage() ) { $("#myID img").click(function(){ //do this..here.. });
0 1603 posted 16 years ago by pixelhandler
Uses jquery and raw javascript to quickly add a class to the body class depending on what kind of page it is.
0 1747 posted 16 years ago by chrisjlee