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
1212
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
887
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
888
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
556
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
722
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
870
posted 11 years ago by thesmu
A little snippet that I use to hide or show text using jquery
1
930
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
1042
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
2045
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
912
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
816
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
922
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
1010
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
658
posted 11 years ago by Priestd09
Checks if JQuery is loaded and then checks if loaded version of JQuery >= needed version
0
674
posted 11 years ago by lubosfonio
Example to manipulate only numbers (and tab key) in a web control (textbox example)
0
843
posted 11 years ago by keidash
Works like a charm. Read manual on site. For use with Worpdress, replace $ with jQuery.
1
1152
posted 11 years ago by zartgesotten
Use Javascript to check if JQuery is loaded properly in the browser
1
900
posted 11 years ago by nshakin
Get the ajax complete event after filtering a view content in drupal
0
1000
posted 11 years ago by apmartins