Welcome To Snipplr


Everyone's Recent Snippets Tagged jquery



Simple function for turning RETURN key presses into TAB key presses. Focuses input element next in the DOM (usually makes sense), unless we are at the end of the form, at which point it focuses the first element in the form for cyclical purposes.
2 2296 posted 13 years ago by kouphax
Simple jQuery snippet for cleanly and automatically setting up your google analytics
4 534 posted 13 years ago by garside
Learn how to place a DIV in the exact middle of the screen using this JQuery horizontal & vertical align plugin.
6 565 posted 13 years ago by neal_grosskopf
Converts a standard select box to a clickable image thumbnail list. <code> &lt;select&gt; &lt;option&gt;/images/test1.jpg&lt;/option&gt; &lt;option&gt;/images/test2.jpg&lt;/option&gt; &lt;/select&gt; &lt;script&gt; $('#image').imageSelect();...
1 504 posted 13 years ago by ping_ch
Thanks to [James]( http://www.girsbrain.org/blog ) for this code.
0 440 posted 13 years ago by zachharkey
Learn how to display the total number of Feedburner subscribers next to your 'subscribe' icon on your web site.
2 650 posted 13 years ago by neal_grosskopf
Here's a simple example of how to parse RSS feeds using jQuery. You will need jFeed (http://www.hovinne.com/blog/index.php/2007/07/15/132-jfeed-jquery-rss-atom-feed-parser-plugin) and a bit of help from PHP (http://snipplr.com/view/12467/php-capture...
8 643 posted 13 years ago by chrisaiv
jQuery client-side form validation for the Radiant CMS mailer extension. Requires jQuery 1.2.6+ Each required field needs a class of "required" assigned to the input tag.
0 501 posted 13 years ago by bcalloway
Learn how to retrieve a specific url's total number of Diggs using JQuery, ASP and the Digg API.
2 1295 posted 13 years ago by neal_grosskopf
Find out how to retrieve a count of the total times users have bookmarked your web site or web page on Delicious by using JQuery and JSON. The code is pretty simple and can be done in under 18 lines of code.
1 705 posted 13 years ago by neal_grosskopf
0 394 posted 13 years ago by davebowker
0 420 posted 13 years ago by davebowker
This is a bit of jQuery within a PHP function that you can dump into your Thesis custom_functions.php file to hide comments upon page load and add a link to show them.
2 446 posted 13 years ago by kristarella
Just so I remember the next time..
1 556 posted 13 years ago by stavelin
Here is a basic example as to how to set up an Ajax request.
4 654 posted 13 years ago by chrisaiv
21 2772 posted 14 years ago by garside
This little piece of code will convert to US phone format, as typed. Eg, As the number "0000000000" was typed, it would convert it to (000)-000-0000.
6 2674 posted 14 years ago by xtheonex
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 857 posted 14 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 421 posted 14 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 686 posted 14 years ago by haxd
2 714 posted 14 years ago by shahways
Using JSON-P with jQuery. Note the callback.
0 530 posted 14 years ago by 1man