Welcome To Snipplr


Everyone's Recent Snippets Tagged jquery



1 ... 4 5 6 7 8 ... 44
This goes through the specified div, and finds a div with the class of current. It then removes the class from that div, and adds it onto the next one. Note: Through CSS make the current class with a display block, and the slide class with a displ...
0 660 posted 12 years ago by accelm
There are a couple of steps involved to connect to an SAP web service. Really, its about the same as connecting to a regular ASMX web service, using the .ajax() function. Make sure you have a WSDL with the function and connection information. I recom...
0 1405 posted 12 years ago by mattvbiggs
This prepends a `#` if it's not already there. Useful when doing jQuery selectors.
0 629 posted 12 years ago by EvanHahn
Use: <script> $(document).ready(function(){ $("#input").forceNumeric(); }); </script>
1 771 posted 12 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 873 posted 12 years ago by soup
Grab the hashtag at the end of the current URL.
0 1166 posted 12 years ago by LadyLoomis
Simple jQuery fadeIn/Out continuous rotator.
1 831 posted 12 years ago by LadyLoomis
With setTimeout it actually works.
0 671 posted 12 years ago by Turek
A new version of my most popular jQuery plugin -Twitter Friends widget. This version aims to be better looking and easier to setup.
1 889 posted 12 years ago by mikemore
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 963 posted 12 years ago by LadyLoomis
Understanding callbacks in jQuery animations
0 632 posted 12 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 829 posted 12 years ago by thewickedchemist
Javascript/jQuery to check for the time
0 730 posted 12 years ago by poot26
This snippet gets the value of the selected dropdown
0 953 posted 12 years ago by jjmu15
Adding input values and clearing on focus
1 888 posted 12 years ago by hubbske
Action a link/submit when input is hit with enter button
0 761 posted 12 years ago by hubbske
Fix z-index in IE7 using JQuery snippet
0 795 posted 12 years ago by MagnerSanborn
Simple jQuery accordion function for jQuery version 1.7.1 and above.
3 968 posted 12 years ago by digitalclubb
Grab jQuery library from Google's CDN this way its faster, burns Google's bandwidth and not yours. Also users will have this cached if other sites are using it as well. Downside of course is Google's servers do go down. This script will check if...
1 873 posted 12 years ago by cyberpunkstudio
Simple solution to add dropdowns quickly to any site.
0 773 posted 12 years ago by thewickedchemist
Basic setup code for jQuery, linking to Google APIs for the jQuery library.
2 1214 posted 12 years ago by adrianparr
Simple Show/Hide Panel we learned in class for an assignment.
0 617 posted 12 years ago by ninacess
Usually when working with form you use a server to handle it, and if your doing it entirely in javascript no reload is required, but what if you wanted to take the information and use it in a javascript on another page, completely client side. I had...
0 1130 posted 12 years ago by FatFolderDesigner
Go through all the authors of a wordpress import and make them the same as the previous authors (Wordpress 3.3).
0 847 posted 12 years ago by jcottrell
Delete a page of wordpress posts with one click ("Run" in Firebug or Developer Tools)
0 714 posted 12 years ago by jcottrell
Creates rotating background images with a smooth transition.
1 845 posted 12 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 1038 posted 12 years ago by Huskie
Made for WebCloud.
1 692 posted 12 years ago by Schart
Use CDN if online. Fallback to local version if offline.
0 923 posted 12 years ago by caruso_g
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 825 posted 12 years ago by digitalclubb
1 ... 4 5 6 7 8 ... 44