Welcome To Snipplr


Everyone's Recent jQuery Snippets



1 ... 17 18 19 20 21 ... 30
Uses jQuery to give links with rel=\"external\" the ability to open in a new window, while keeping the document XHTML or HTML Strict. Works by assigning a \"_blank\" value to the \"target\" attribute of all such links after the page has already loade...
0 713 posted 13 years ago by Moridin
logical action on tree with checkboxes
0 610 posted 13 years ago by knedle
A quick template for extending javascript/jQuery functionality
1 528 posted 13 years ago by nikefido
A template of a basic jQuery plugin, including over-ridable options
3 721 posted 13 years ago by nikefido
A small plugin that you can use in the jQuery chain to delay the next in queue. For those using a jQuery library pre 1.4 (v1.4 + has .delay() ). $('.notice').fadeIn().idle(2000).fadeOut('slow');
0 559 posted 13 years ago by Meander365
A snippet setup to grab an XML file, parse it, and return the data contained within.
2 568 posted 13 years ago by joshharbaugh
Hijack (Ajack?) links within an element so instead of booting you to a fresh page it loads the information to a specified DIV. If you have any suggestions on how to make it better then let me know
5 894 posted 13 years ago by reynish
Originally from Webdesignerwall (see src) Hover thumbnails of images and see the big holder image being swapped.
0 613 posted 13 years ago by Rembrand
Originally from http://www.pseudocoder.com Make an li (or div or whatever) clickable without having to wrap it in a link-tag. Like Matt, I like to add a .hover class to it in order to apply hover effects
0 516 posted 13 years ago by Rembrand
Get menu tabs to slide up/down when hovering over them. For some reason, it only starts working after you've hovered above a tab first. I should find out why that is.
0 457 posted 13 years ago by Rembrand
Show a form field if 1 value from a dropdown is chosen, hide is the other is chosen. Can be extended to include more fields and values. Could get messy if you start nesting more than 2 'if else' but it gets the job done.
0 987 posted 13 years ago by Rembrand
Originally from http://www.electrictoolbox.com (see src)\r\nClear the default value of a form field when you click on it (when you want to type) and put it back if you leave without typing anything.
1 865 posted 13 years ago by Rembrand
Originally form http://www.electrictoolbox.com\r\nComes in handy if you want to display a message in the field (\\\"type your password\\\") but mask the password itself.
1 785 posted 13 years ago by Rembrand
Display a default value in a text field that disappears on focus and reappears on blur **if** the field is blank.
0 432 posted 13 years ago by prsjohnny
0 449 posted 13 years ago by reynish
Select the specified option for alle html selects as jQuery.
0 663 posted 13 years ago by pogosheep
1 518 posted 13 years ago by wanderlusts
basic ajax submit
1 542 posted 13 years ago by benrasmusen
I found this really useful when using AJAX that will change database. Preventing the user to re-do the action is not the best way but it still is a little unobtrusive to the user as it lets him navigate the page and know what is going on.
2 822 posted 13 years ago by verhaeg
Parsing Carrage return with br tags
0 459 posted 13 years ago by Sullan
this shows you how to use localStorage to have a page remember content that has been edited with the html5 attribute, contenteditble
0 648 posted 13 years ago by adriamooney
Make sure you change username.json to your actual username and #twitter to the actual selector you wish to update.
3 527 posted 13 years ago by iqwebdev
There's got to be a better way?
0 485 posted 13 years ago by trepmal
Replaces the pre-defined text of a textbox (e.g. the purpose of the textbox) when the textbox gets focussed, and resets the text if it blurs when empty
1 595 posted 13 years ago by cryothic
Incredibly useful. Great when you need to remove and add options to selectboxes.
0 784 posted 13 years ago by Meander365
1 ... 17 18 19 20 21 ... 30