Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged jquery



1 2 3 4 5 6 7 ... 15
0 515 posted 13 years ago by gregorynicholas
Link body class names to trigger javascript. It requires jQuery.
0 825 posted 13 years ago by cmndo
Is very inefficient to attach a anonymous function event handlers to multiple items in a selection. The function is duplicated for each element. This shows how you can just create a single function and in the event handler callback just call that...
0 655 posted 13 years ago by anagaiyahoocom
Don't forget to include jQuery validation plugin before this snippet. You can find it here: http://bassistance.de/jquery-plugins/jquery-plugin-validation/
0 1285 posted 13 years ago by racl101
this is the way for toggling something on mouse hover in and out
0 1023 posted 13 years ago by root_hacker
Activation: con Scope: source.js, source.js.jquery
0 737 posted 13 years ago by divtagged
0 535 posted 13 years ago by fadlee
Removes the margin-right spacing from the item in a line of items. This works cross browser unlike the CSS last-child selector (which doesn't work in IE6 or IE7).
0 771 posted 13 years ago by redconservatory
Automatically use jQuery to Open External Links in New Window (checking domain first).
3 1150 posted 13 years ago by mindshare
Most of spservices function can be ignored -- not specifically relevant to templating. Important code in that block is the array push.
0 697 posted 13 years ago by rumremix
Last step of the installation - Function documentation.
1 814 posted 13 years ago by Whiteagle
2 594 posted 13 years ago by prit
f you wish to use any of the meta-characters ( such as !"#$%&'()*+,./:;?@[\]^`{|}~ ) as a literal part of a name, you must escape the character with two backslashes: \\. For example, if you have an an element with id="foo.bar", you can use the select...
0 582 posted 13 years ago by bitstream
I like how this site uses jQuery to center some elements and I wanted to save the code incase they change their site ever.
2 817 posted 13 years ago by greenconure
Template for a Object Literal Architecture in javascript, in this case jQuery
0 682 posted 13 years ago by athanassiadis
This snippet could be useful if you use an div based design eg. with a slider or something similar. it grabs variables from the base url splitted by "#". So you can browse to your site like "http://www.example.com/#1#2" and use the first and secon...
0 953 posted 13 years ago by disas
You may need to change the IDs around.
2 910 posted 13 years ago by joshvermaire
2 797 posted 13 years ago by emilbjorklund
This tiny jQuery plug in forces a user to enter only numeric values on an input field by silently removing non-numeric values as they're entered. (Caution: Never rely on client-side validation; use server-side validation as well)
2 1164 posted 13 years ago by BrunoDeBarros
You need jQuery to make this work.
1 848 posted 13 years ago by tomasdev
0 569 posted 13 years ago by ivorpad
1 2 3 4 5 6 7 ... 15