Language : jquery
|Cloning table header to the bottom of table with reverse||NeXTs||jQuery||table||
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: jsFiddle
|jQuery - Function on toggleClass complete||satie83||jQuery||jquery||
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.
|Prevent jQuery conflicts||Priestd09||jQuery||jquery||
Here is a simple and clever way to prevent script conflicts when using jQuery. This snippet will show how to scope the dollar sign.
|Only Numbers in Web Controls with jQuery||keidash||jQuery||number||
Example to manipulate only numbers (and tab key) in a web control (textbox example)
|JQuery grayscale images turn colored on hover||zartgesotten||jQuery||jquery||
Works like a charm. Read manual on site. For use with Worpdress, replace $ with jQuery.
|add incremental classes||thesmu||jQuery||jquery||
add incremental classes
|add target blank||thesmu||jQuery||html||
add target blank
|Jquery table tr checkbox selectable||webbu||jQuery||table||
Jquery table tr checkbox selectable http://jqueryui.com/selectable/
required *jquery *jqueryui
|Post form by AJAX and jQuery||khaled__mahmoud||jQuery||form||
This code shows how we post HTML form by AJAX and jQuery.
|Show hide jquery||Armin||jQuery||
|Latest jQuery CDN||daisyfig99||jQuery||
jQuery's CDN that hostess the their latest jQuery code.
|Adding an active class to nav links based on URL with jQuery Address||vaughanj||jQuery||url||
What this does is it adds the attribute “data-path” to each of the nav links, and gives this attribute a value of whatever comes after the “base” URL. Because we are using jQuery Address, we have the (event.value) variable to play with. This value is automatically set to be whatever is after the “base” value too, which means we can now check to see if these values equal each other. If they do, the active class is added to the link. Remember, this function resides inside the jQuery.address.change function, so it will be run every time a new link is clicked.
|Use jQuery to display an image alt tag as a caption overlay||vaughanj||jQuery||image||
Loop through all the images in a given container, grab their alt tags if they are not empty, and then create an overlay in a span tag that will be positioned on the bottom corner of the each image.
Add the init() function to your document.ready call. This allows touch events to be handled like click events.
Validate numbers only, email addresses, and add error classes