Welcome To Snipplr


Everyone's Recent Snippets Tagged jquery



/* 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 922 posted 10 years ago by muzahidict
Slides in a banner-header after some pixels of scrolling.
0 581 posted 10 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 678 posted 10 years ago by winthropite
Validating phone number using jquery
0 1054 posted 10 years ago by satinfo30
Button that onclick with scroll to top of the page
0 641 posted 10 years ago by tucq88
Uses the object prototype to extend data. Instantiate as an object and use as specified below (bottom of the code)
0 723 posted 10 years ago by rickygri
Track user interactions with html forms
1 875 posted 10 years ago by nicom
0 545 posted 10 years ago by MistaTwista
Creating fixed floated comment's box on right side
0 527 posted 10 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 417 posted 10 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 527 posted 10 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 683 posted 10 years ago by thesmu
A little snippet that I use to hide or show text using jquery
1 712 posted 10 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 798 posted 10 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 1653 posted 10 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 720 posted 10 years ago by SnipplrSlush
How to replace the tab ASCII characters ( ) of the text.
0 820 posted 10 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 617 posted 10 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 691 posted 10 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 789 posted 10 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 481 posted 10 years ago by Priestd09
Checks if JQuery is loaded and then checks if loaded version of JQuery >= needed version
0 508 posted 10 years ago by lubosfonio
Example to manipulate only numbers (and tab key) in a web control (textbox example)
0 645 posted 10 years ago by keidash
Works like a charm. Read manual on site. For use with Worpdress, replace $ with jQuery.
1 901 posted 10 years ago by zartgesotten
Use Javascript to check if JQuery is loaded properly in the browser
1 710 posted 10 years ago by nshakin
add target blank
0 569 posted 10 years ago by thesmu
add incremental classes
0 557 posted 10 years ago by thesmu
will preload any background image referenced in your CSS.
0 652 posted 11 years ago by sarpay
simple code of using Ajax by JavaScript or jQuery
0 873 posted 11 years ago by codingforever99
Get the ajax complete event after filtering a view content in drupal
0 782 posted 11 years ago by apmartins