Welcome To Snipplr


Everyone's Recent Snippets Tagged jquery



1 ... 37 38 39 40 41 ... 44
One must escape "special characters" in id names using two backslashes.
0 655 posted 15 years ago by penguin999
1 648 posted 15 years ago by Uzbekjon
I used this simple snippet to enable users to "View More Info" which was embedded in a div below each of a list of items. This is different from many of the simple jQuery examples that only allow you to show/hide one particular div.
1 734 posted 15 years ago by aristoworks
1 600 posted 15 years ago by michaelfox
0 659 posted 15 years ago by davebowker
Testing if toggle has happened.
0 453 posted 15 years ago by davebowker
This script preloads images in your document or lets your to preload images by their url and insert or append them in your DOM tree later.
5 695 posted 15 years ago by Uzbekjon
This was not written by me, but Jeffrey Olchovy. I uploaded it here because his blog messes up the quotes.
10 982 posted 15 years ago by oscargodson
really simple random bg image. Save images starting at 1.jpg. Put in your jquery selector. Etc, etc.
8 936 posted 15 years ago by ira
Extracts a string paremeter from the url query string. Basic operation wont handle multiples such as radio buttons etc. Just gets the first instance of the name and returns it's value.
1 534 posted 15 years ago by kouphax
Allows the user to bind an event into a certain position in the call stack for events.
3 863 posted 15 years ago by garside
bring back the old browser detection
1 898 posted 15 years ago by localhorst
Great little snippit to add a <tr> to the bottom of a table. Note the use of the context in the jQuery e.g var n = $('tr:last td', this).length; Will have to use this in the future, very good to know!
4 1404 posted 15 years ago by 1man
Lets you get YouTube video scene images by video id or youtube video url using only javascript OR jQuery.
5 1730 posted 15 years ago by Uzbekjon
Appends a css class to all form input elements on a page by extracting the input type from the element in question.
0 317 posted 15 years ago by stylephreak
include document ready and standard code to run swfobject smoothly in IE6
1 713 posted 15 years ago by apro2000
A very simple plug-in I wrote to make x number of columns equal height. Looks for the column with the biggest height then sets the rest to the same. I'm sure it can be made cleaner, will look into that later.
4 860 posted 15 years ago by 1man
6 619 posted 15 years ago by joeydi
Adding a namespace to an event can make it easier to unbind. It is very easy to unbind all events with the same namespace.
1 728 posted 15 years ago by 1man
Never used the index() method in jQuery but could be useful to know. Find a selected elements index when you click on it. Note the $('ul#mylist') inside the index method, gives the search some context of where to look for .selected, saves looking thr...
1 754 posted 15 years ago by 1man
jquery ui/tabs initiation ensures screenreaders can focus content when selecting tabs. Tested using Jaws 8.
3 528 posted 15 years ago by terrencewood
Simple imagefader to rotate around a few images. Seem to be doing this a lot in various projects so decided to put something a bit more generic together. Uses jQuery. Images named as car1.jpg, car2.jpg, car3..... etc.
3 846 posted 15 years ago by 1man
Starting from jQuery 1.3
1 779 posted 15 years ago by omixen
5 751 posted 15 years ago by johnloy
[Video Example](http://screencast.com/t/L6E0xI0J5P) A cross browser image caption on mouseover. Using jquery, CSS. This is a bit crude but pretty simple to implement. Just change the image width, some css to match that image size and create dyn...
4 904 posted 15 years ago by jadedbat
Simple function for turning RETURN key presses into TAB key presses. Focuses input element next in the DOM (usually makes sense), unless we are at the end of the form, at which point it focuses the first element in the form for cyclical purposes.
2 2655 posted 15 years ago by kouphax
Simple jQuery snippet for cleanly and automatically setting up your google analytics
4 722 posted 15 years ago by garside
1 ... 37 38 39 40 41 ... 44