Welcome To Snipplr


Everyone's Recent jQuery Snippets Tagged jquery



Checks if JQuery is loaded and then checks if loaded version of JQuery >= needed version
0 1174 posted 12 years ago by lubosfonio
Example to manipulate only numbers (and tab key) in a web control (textbox example)
0 1423 posted 12 years ago by keidash
Works like a charm. Read manual on site. For use with Worpdress, replace $ with jQuery.
1 1929 posted 12 years ago by zartgesotten
add target blank
0 1220 posted 12 years ago by thesmu
add incremental classes
0 1180 posted 12 years ago by thesmu
Get the ajax complete event after filtering a view content in drupal
0 2501 posted 12 years ago by apmartins
equal-height columns
0 1435 posted 12 years ago by thesmu
The snippet below was pulled from code that loads a list of names pulled from Active Directory into a listbox. This code will execute when the user double clicks on a name in the list box (lstResults) and stores it in a variable to be passed to anoth...
0 1594 posted 12 years ago by mattvbiggs
myEls should be the selector statement for whatever elements you want to effect. The example wraps every 3.
1 1922 posted 12 years ago by adambundy
In scripts.js
0 2066 posted 12 years ago by wanlapat
Handy code snippet for keeping track of the number of characters a user is entering into a textbox or textarea. It will dynamically update the count as the user is typing. This also works with copy & paste. The top snippet will automatically calcu...
2 1362 posted 12 years ago by mattvbiggs
I have made a small jQuery snippet to demo the image swapping with attr() funciton. The demo uses 2 images with classes img1 and img2 respectively. On a click of a button, the images are swapped. Basically the script stores “src” value into...
0 1408 posted 12 years ago by vijayrajesh
By storing or by having the Iframe embed code as a variable, You can play the Youtube video on a click of a button or any other event. I have used “append” function of jQuery to append the IFrame code dynamically inside a DIV tag.
0 2348 posted 12 years ago by vijayrajesh
The thumbnails of Youtube videos are generally low in quality. Sometimes, the thumbnail is not enough to get the people attention. Here is a small code I have written that works as follows. A custom thumbnail is displayed at the size of 560px wi...
0 1790 posted 12 years ago by vijayrajesh
This is a skeleton template for a jquery plugin with custom methods
1 1456 posted 13 years ago by rickygri
jQuery
0 1092 posted 13 years ago by msstar
mi comment
0 1261 posted 13 years ago by darvein
The difference between jQuery.extend() and jQuery.fn.extend()
1 1443 posted 13 years ago by msstar
.on( events [, selector] [, data], handler(eventObject) ) A delegated-events approach attaches an event handler to only one element, the tbody, and the event only needs to bubble up one level (from the clicked tr to tbody):
0 1355 posted 13 years ago by grindking
A very good slider / carousel. Um slider / carrossel muito bom. Ideal para designs responsivos.
0 1201 posted 13 years ago by nivasgallo
This code allows Google Analytics to monitor hashtags of jQuery activated events. Very useful if you relies on modal boxes. Este código permite ao Google Analytics monitorar hashtags e âncoras em sites com eventos ativados por jQuery. Muito út...
1 1197 posted 13 years ago by nivasgallo
raty named jquery plugin for star rating
0 1176 posted 13 years ago by ggmittal
Smart Time Ago is a little jQuery library to update the relative timestamps in your document intelligently.
0 1348 posted 13 years ago by praveensewak
Quite useful snippet to log all events triggering occuring in your app. Because it uses event.global array, it logs custom events as well as native ones For developpement use only, disable it before migrating to production environement.
1 1084 posted 13 years ago by mandawan
If someone put text into an input field (or automatic e.g. with a 2d barcode scanner) and you want to replace a part of the input (pattern) then will help this small jquery code snippet.
0 1900 posted 13 years ago by bassdas
obviously one can access HTML5's data attribute super easy in jQuery
0 1531 posted 13 years ago by iroybot
Used to automatically give feedback on email address validity.
0 1412 posted 13 years ago by boondoklife
This is some code that creates an effect for jQuery Cycle to scroll up when you click the down button and down when you click the up button - like a scrollbar.
0 1629 posted 13 years ago by JoshChris
This is a pretty standard jQuery method to listen for the enter key and simply "click" the button. However, if you are using a LinkButton this code will not work. The reason for this is that a LinkButton is rendered to the browser as an Anchor tag...
0 1167 posted 13 years ago by weldonr30
A complete lightbox with minimal code and full functionality: close button, close on escape keypress, close on lightbox blur event.
1 1194 posted 13 years ago by mortu