Welcome To Snipplr


Everyone's Recent Snippets Tagged jquery



jQuery Scroll to bottom of page
0 111 posted 6 years ago by buda9
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 81 posted 6 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 94 posted 6 years ago by muzahidict
Slides in a banner-header after some pixels of scrolling.
0 71 posted 6 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 76 posted 6 years ago by winthropite
Validating phone number using jquery
0 190 posted 6 years ago by satinfo30
Button that onclick with scroll to top of the page
0 71 posted 6 years ago by tucq88
Reads all the nodes of the object, including orphaned text that's not wrapped into any tag as well as empty text nodes
0 92 posted 6 years ago by makbeta
Uses the object prototype to extend data. Instantiate as an object and use as specified below (bottom of the code)
0 84 posted 6 years ago by rickygri
Track user interactions with html forms
1 107 posted 6 years ago by nicom
0 56 posted 6 years ago by MistaTwista
Creating fixed floated comment's box on right side
0 68 posted 6 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 47 posted 6 years ago by hcker2000
Nowadays majority of sites uses the jQuery JavaScript library. A lot of them also make use of Google's hosted version of the library from some reasons: faster loading, better cross site caching etc. However, what if there is ever a problem and jQuery...
0 72 posted 6 years ago by apphp-snippets
$(document).ready(function() { var maxHeight = -1; $('.features').each(function() { maxHeight = maxHeight > $(this).height() ? maxHeight : $(this).height(); }); $('.features').each(function() { $(this).height(maxHeight...
1 92 posted 6 years ago by thesmu
A little snippet that I use to hide or show text using jquery
1 108 posted 6 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 94 posted 7 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 239 posted 7 years ago by i-am-andy
jQuery Validate is used in ASP.Net MVC 4. As it is checking only en-US as a default you may have problems with different cultures for decimal inputs and dates (I had to try for minutes to find a accepted date format. I don't want to see how my custom...
0 73 posted 7 years ago by SnipplrSlush
How to replace the tab ASCII characters ( ) of the text.
0 148 posted 7 years ago by keidash
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 94 posted 7 years ago by satie83
For side by side ULs that become too wide on small screens/devices. The following script let you merge or unmerge ULs depending on the size of the screen/device. Works with jQuery
0 85 posted 7 years ago by jbernus
This is a really basic skeleton template for jQuery plugins. It provides a callback function which can be called anywhere in your plugin with base.success(); This will return the current element, but you can pass anything you like back by changing th...
0 97 posted 7 years ago by rickygri
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 64 posted 7 years ago by Priestd09
Checks if JQuery is loaded and then checks if loaded version of JQuery >= needed version
0 67 posted 7 years ago by lubosfonio
Example to manipulate only numbers (and tab key) in a web control (textbox example)
0 87 posted 7 years ago by keidash
Works like a charm. Read manual on site. For use with Worpdress, replace $ with jQuery.
1 124 posted 7 years ago by zartgesotten
Use Javascript to check if JQuery is loaded properly in the browser
1 92 posted 7 years ago by nshakin
add target blank
0 60 posted 7 years ago by thesmu
add incremental classes
0 54 posted 7 years ago by thesmu