I work on an HTML-based client site and must arbitrarily arrange my set of Divs when I refresh the page. I would usually handle this through PHP and a database call, but this is a static site.
So I'm wondering if anyone knows how to randomly display a set of divs using jquery?
Here is an example:
<div class="myItems"> <div class="item">1</div> <div class="item">2</div> <div class="item">3</div> </div>
and when updating it can change to:
<div class="myItems"> <div class="item">2</div> <div class="item">3</div> <div class="item">1</div> </div>
Does anyone know how to do this?
source share