Welcome To Snipplr


Everyone's Recent jQuery Snippets



1 2 3 4 5 6 7 ... 30
Use: <script> $(document).ready(function(){ $("#input").forceNumeric(); }); </script>
1 322 posted 9 years ago by itsmeameer
This is a very simple way of highlighting the current page of a menu. It uses javascipt to take the current url and cross checks it against any URLs that match in the menu. If one matches then add an ‘active’ class to it. Be careful with #’s t...
1 389 posted 9 years ago by soup
simple ajax submit (example is from jquery doc)
0 352 posted 9 years ago by artaserse
Grab the hashtag at the end of the current URL.
0 537 posted 9 years ago by LadyLoomis
Simple jQuery fadeIn/Out continuous rotator.
1 357 posted 9 years ago by LadyLoomis
With setTimeout it actually works.
0 278 posted 9 years ago by Turek
Set a variable by getting the URLs id with PHP. Find the the option with the name value that is equal with the variable and add "selected" to it.
0 428 posted 9 years ago by LadyLoomis
Understanding callbacks in jQuery animations
0 265 posted 9 years ago by handsomegenius
Hides the button based on scroll position, fades in and out as necessary and upon click smoothly scrolls back to the top.
0 390 posted 9 years ago by thewickedchemist
Javascript/jQuery to check for the time
0 302 posted 9 years ago by poot26
This snippet gets the value of the selected dropdown
0 413 posted 9 years ago by jjmu15
Adding input values and clearing on focus
1 367 posted 9 years ago by hubbske
Action a link/submit when input is hit with enter button
0 343 posted 9 years ago by hubbske
JQuery dependent snippet that will detect OS, Browser and Version
0 487 posted 9 years ago by MagnerSanborn
Simple jQuery accordion function for jQuery version 1.7.1 and above.
3 493 posted 9 years ago by digitalclubb
Simple solution to add dropdowns quickly to any site.
0 325 posted 9 years ago by thewickedchemist
Basic setup code for jQuery, linking to Google APIs for the jQuery library.
2 571 posted 9 years ago by adrianparr
Simple Show/Hide Panel we learned in class for an assignment.
0 254 posted 9 years ago by ninacess
Creates rotating background images with a smooth transition.
1 368 posted 10 years ago by ryonley
This code snippet fetches the very latest minified version of jQuery from Google's CDN. If this is not available, we revert to a locally stored version (current version at time of publish was 1.7.1 - update this to suit going forward).
1 467 posted 10 years ago by Huskie
With this plugin you can create a custom cursor message e.g. Call this plugin before your jquery function to show the user a message like 'Loading...' and then simply remove the message after the function is done loading. You can expand this easily b...
0 344 posted 10 years ago by RobertHegeraad
There are 2 jQuery snippets, both replace broken images with one of your choosing, the difference is that one is "safe" and the other is "persistent". The safe one will quick working, so if your doing something that dynamically changed images on a pa...
3 447 posted 10 years ago by FatFolderDesigner
Made for WebCloud.
1 291 posted 10 years ago by Schart
A clean and simple jQuery function for creating a tabbed element. This one allows multiple tabbed elements on 1 page (which has been the downfall of so many others)
1 386 posted 10 years ago by digitalclubb
This function will detect the orientation (portrait/landscape) of an iOS device and set the body class to either portrait or landscape, as well as providing a global variable for use elsewhere in your JS. If you require multiple classes on your bo...
3 436 posted 10 years ago by iridium
jQuery for inputy attribute "placeholder".
1 342 posted 10 years ago by mihael
This snippet describes how to fill select html element with Text, Value pairs where 'Text' is displayed to the user and 'Value' is actual value to be processed.
0 359 posted 10 years ago by Neven
<p>Little snippet, which helps to use custom colored selections. All you need is to setup the right style and use this snippet!</p>
0 304 posted 10 years ago by schmizpeter
Creating sprite buttons often had problems with different browsers. This is a solution to get background positions in each browser for further manipulation.
1 448 posted 10 years ago by bernhardb
scrollTo jQuery
0 300 posted 10 years ago by mortu
1 2 3 4 5 6 7 ... 30