Welcome To Snipplr
Everyone's Recent Snippets Tagged jquery
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
/* 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
1196
posted 10 years ago by muzahidict
A quick demonstration of fading an element in over a set time by starting opacity at 0 and incrementing it + .1 over time.
0
880
posted 10 years ago by winthropite
Uses the object prototype to extend data. Instantiate as an object and use as specified below (bottom of the code)
0
871
posted 11 years ago by rickygri
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
547
posted 11 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
708
posted 11 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
856
posted 11 years ago by thesmu
A little snippet that I use to hide or show text using jquery
1
915
posted 11 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
1035
posted 11 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
2008
posted 11 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
897
posted 11 years ago by SnipplrSlush
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
805
posted 11 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
899
posted 11 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
998
posted 11 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
645
posted 11 years ago by Priestd09
Checks if JQuery is loaded and then checks if loaded version of JQuery >= needed version
0
663
posted 11 years ago by lubosfonio
Example to manipulate only numbers (and tab key) in a web control (textbox example)
0
836
posted 11 years ago by keidash
Works like a charm. Read manual on site. For use with Worpdress, replace $ with jQuery.
1
1133
posted 11 years ago by zartgesotten
Use Javascript to check if JQuery is loaded properly in the browser
1
884
posted 11 years ago by nshakin
Get the ajax complete event after filtering a view content in drupal
0
989
posted 11 years ago by apmartins