Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- $(".shuffle").each(function() {
- var parent = $(this),
- divs = parent.children().remove();
- while (divs.length) {
- parent.append(divs.splice(Math.floor(Math.random() * divs.length), 1)[0]);
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement