anjakammer
10/16/2015 - 11:09 AM

Displayes Content randomly

Displayes Content randomly

$(document).ready(function(){
    var el = $(".rand_element").parent().get().sort(function(){ 
        return Math.round(Math.random())-0.5; 
    });
    $(".element_box").prepend(el);
});