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 884 posted 14 years ago by Moridin
logical action on tree with checkboxes
0 763 posted 14 years ago by knedle
A quick template for extending javascript/jQuery functionality
1 694 posted 14 years ago by nikefido
A template of a basic jQuery plugin, including over-ridable options
3 882 posted 14 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 720 posted 14 years ago by Meander365
A snippet setup to grab an XML file, parse it, and return the data contained within.
2 714 posted 14 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 1066 posted 14 years ago by reynish
Originally from Webdesignerwall (see src) Hover thumbnails of images and see the big holder image being swapped.
0 765 posted 14 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 658 posted 14 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 599 posted 14 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 1157 posted 14 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 1056 posted 14 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 955 posted 14 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 556 posted 14 years ago by prsjohnny
0 599 posted 14 years ago by reynish
Select the specified option for alle html selects as jQuery.
0 822 posted 14 years ago by pogosheep
1 654 posted 14 years ago by wanderlusts
basic ajax submit
1 702 posted 14 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 1042 posted 14 years ago by verhaeg
Parsing Carrage return with br tags
0 576 posted 14 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 810 posted 14 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 702 posted 14 years ago by iqwebdev
There's got to be a better way?
0 616 posted 14 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 766 posted 14 years ago by cryothic
Incredibly useful. Great when you need to remove and add options to selectboxes.
0 975 posted 14 years ago by Meander365
1 ... 17 18 19 20 21 ... 30