Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged jquery



0 1094 posted 16 years ago by davebowker
Click on an input field with a prefilled value, if that value equals the default then select it, if not leave it as it was. Relies on jQuery.
2 1864 posted 16 years ago by 1man
This enables you to center a horizontal unordered list that uses "float:left". Normally, this is almost impossible with pure CSS, but Javascript makes it easy. jQuery makes it even easier.
0 1040 posted 16 years ago by corey
If you've ever been frustrated at fixing multiple double margin / duplicate character bugs in your page, using this handy jQuery snippit, you can wipe them away instantly! This code requires the latest version of jQuery.
3 1561 posted 16 years ago by haxd
2 1651 posted 16 years ago by shahways
Using JSON-P with jQuery. Note the callback.
0 1310 posted 16 years ago by 1man
Add class external to all target=_blank links
4 1336 posted 16 years ago by gfazioli
1 1071 posted 16 years ago by davebowker
Simply jQuery script for CSS drop-down menu
7 1479 posted 16 years ago by bcalloway
3 1111 posted 16 years ago by jamesming
0 1081 posted 16 years ago by Zver
1 1120 posted 16 years ago by manec
3 1174 posted 16 years ago by jamesming
I didn't realise until now you could do this in jQuery, very useful. Store a value for later use, then remove it.
4 1293 posted 16 years ago by 1man
Thanks to Matt Farina This snippet is useful for preloading content with media that has been received via an AJAX request. For simple preloading of known images, see similar snippet.
6 1309 posted 16 years ago by nighthawk
Thanks to Matt Farina Also see similar snippet for preloading arbitrary content, e.g. media in content received via AJAX.
14 1470 posted 16 years ago by nighthawk
You will need to download a few things to easily create rounded corners. They are jQuery (http://jquery.com/) and the jQuery rounded corners plug-in (http://www.malsup.com/jquery/corner/).
14 1529 posted 16 years ago by chrisaiv
Go to link location when tab clicked (or selected actually) using 'select' event.
0 1263 posted 16 years ago by ardissoebrata
Based on my Annotations plugin this plugin offers the ability to use Mask annotations to apply input masks over input elements on a page. Very much BETA. See comments for use. <!--@Mask("##/##/####")-->
0 1128 posted 16 years ago by kouphax
Constraints plugin (requires annotation plugin). This is the second draft version that has been severly refactoed both internally and externally.
0 1129 posted 16 years ago by kouphax
The annotaion framework provides access to client side comment based DOM annotations. The framework does not imply any specific usage and is essentially useless on it's own. It merely provides another way to offer metadata for elements. An annota...
1 2293 posted 16 years ago by kouphax