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 523 posted 10 years ago by lubosfonio
Example to manipulate only numbers (and tab key) in a web control (textbox example)
0 672 posted 10 years ago by keidash
Works like a charm. Read manual on site. For use with Worpdress, replace $ with jQuery.
1 936 posted 10 years ago by zartgesotten
add target blank
0 600 posted 11 years ago by thesmu
add incremental classes
0 588 posted 11 years ago by thesmu
Get the ajax complete event after filtering a view content in drupal
0 805 posted 11 years ago by apmartins
equal-height columns
0 720 posted 11 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 738 posted 11 years ago by mattvbiggs
myEls should be the selector statement for whatever elements you want to effect. The example wraps every 3.
1 1015 posted 11 years ago by adambundy
In scripts.js
0 1156 posted 11 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 650 posted 11 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 727 posted 11 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 1526 posted 11 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 994 posted 11 years ago by vijayrajesh
This is a skeleton template for a jquery plugin with custom methods
1 770 posted 11 years ago by rickygri
jQuery
0 507 posted 11 years ago by msstar
mi comment
0 643 posted 11 years ago by darvein
The difference between jQuery.extend() and jQuery.fn.extend()
1 718 posted 11 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 704 posted 11 years ago by grindking
A very good slider / carousel. Um slider / carrossel muito bom. Ideal para designs responsivos.
0 588 posted 11 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 561 posted 11 years ago by nivasgallo
raty named jquery plugin for star rating
0 583 posted 11 years ago by ggmittal
Smart Time Ago is a little jQuery library to update the relative timestamps in your document intelligently.
0 695 posted 11 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 462 posted 11 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 976 posted 11 years ago by bassdas
obviously one can access HTML5's data attribute super easy in jQuery
0 787 posted 11 years ago by iroybot
Used to automatically give feedback on email address validity.
0 736 posted 11 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 792 posted 11 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 532 posted 11 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 588 posted 11 years ago by mortu