Welcome To Snipplr


Everyone's Recent jQuery Snippets



As you can see you need to add backslash and apostrophe => \' to font family with space between. If there isn't spaces in font name just use double apostrophes, e.g. "Lucida Grande"
0 1527 posted 11 years ago by buda9
/* author : MD. MUZAHIDUL ISLAM ([email protected]) * file name : cascade-load.js * This segment of code uses jQuery(jquery-1.7.2.js) that helps to load cascade data from sever. * To use this code, 'div' element should contains a 'select' h...
0 1979 posted 12 years ago by muzahidict
Chrome bug-fix. CSS forces Chrome to redraw the fonts
0 2698 posted 12 years ago by eklemen
Slides in a banner-header after some pixels of scrolling.
0 1408 posted 12 years ago by mountbatt
A quick demonstration of fading an element in over a set time by starting opacity at 0 and incrementing it + .1 over time.
0 1593 posted 12 years ago by winthropite
Validating phone number using jquery
0 1983 posted 12 years ago by satinfo30
Avoid history back when is pressed backspace key in number imput
0 1506 posted 12 years ago by porquero
pass if on url param
0 2445 posted 12 years ago by thesmu
Track user interactions with html forms
1 1794 posted 12 years ago by nicom
0 1269 posted 12 years ago by MistaTwista
Creating fixed floated comment's box on right side
0 1139 posted 12 years ago by maddev-
You can run this in firebug to get yourself an up to date select with all the Industries listed on this page. http://developer.linkedin.com/documents/industry-codes
0 1067 posted 12 years ago by hcker2000
$(document).ready(function() { var maxHeight = -1; $('.features').each(function() { maxHeight = maxHeight > $(this).height() ? maxHeight : $(this).height(); }); $('.features').each(function() { $(this).height(maxHeight...
1 1609 posted 12 years ago by thesmu
A little snippet that I use to hide or show text using jquery
1 1600 posted 12 years ago by TwistedEinstein
Simple function to include in your script to enable multi-line text-overflow. See the jsfiddle (http://jsfiddle.net/eAyyL/) for details on the necessary CSS and HTML layout.
0 2746 posted 12 years ago by JoshChris
A simple way of displaying a random list item. Could be used to randomly display anything. Demo: jsfiddle.net/uRd6N/ (keep clicking run)
0 3014 posted 12 years ago by i-am-andy
How to replace the tab ASCII characters ( ) of the text.
0 1598 posted 12 years ago by keidash
Snippet may be usefull for cloning table header to the bottom of table. Snippet will clone all children elements from thead, reverse and insert to tfoot. Example at jsFiddle: <a href="http://jsfiddle.net/xWWYN/">jsFiddle</a>
0 3202 posted 12 years ago by NeXTs
How can I do a function once a toggleClass has completed? The .toggleClass method along with all other animation methods return a deferred object that you can access using .promise(). At that point, you can bind to it's done method.
1 1415 posted 12 years ago by satie83
Here is a simple and clever way to prevent script conflicts when using jQuery. This snippet will show how to scope the dollar sign.
2 1258 posted 12 years ago by Priestd09
Checks if JQuery is loaded and then checks if loaded version of JQuery >= needed version
0 1295 posted 12 years ago by lubosfonio
Example to manipulate only numbers (and tab key) in a web control (textbox example)
0 1562 posted 12 years ago by keidash
Works like a charm. Read manual on site. For use with Worpdress, replace $ with jQuery.
1 2075 posted 12 years ago by zartgesotten
add target blank
0 1337 posted 12 years ago by thesmu
add incremental classes
0 1295 posted 12 years ago by thesmu
This code shows how we post HTML form by AJAX and jQuery.
0 2004 posted 12 years ago by khaled__mahmoud
Add the init() function to your document.ready call. This allows touch events to be handled like click events.
0 1716 posted 12 years ago by bitsculptor
Get the ajax complete event after filtering a view content in drupal
0 2674 posted 13 years ago by apmartins
equal-height columns
0 1578 posted 13 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 1706 posted 13 years ago by mattvbiggs