-
-
Recent Posts
Recent Comments
- caphun on Angular gotcha: ng-app=”myApp” (named applications)
- Melvina on Angular gotcha: ng-app=”myApp” (named applications)
- Get selected element's outer HTML | Easy jQuery | Free Popular Tips Tricks Plugins API Javascript and Themes on jQuery: outerHTML
- pacotole on jQuery: Textarea maxlength
- mani on How to get Fancybox 1.3.1 to stay put!
-
jQuery: Shuffle Plugin
I recently came across a really compact array shuffling function on JSFromHell.com, which I thought would make a nifty jQuery plugin. This jQuery shuffle plugin could be applied to any HTML element or Array object. (function($){ $.fn.shuffle = function() { return this.each(function(){ var items = $(this).children(); return (items.length) ? $(this).html($.shuffle(items)) : this; }); } $.shuffle […]