How can I randomise <li> elements on page refresh?
Does anyone have any ideas about how I could go about randomising an list each time the page is refreshed?
A jQuery solution would be perfect as I'm 开发者_JAVA技巧already using it.
Any advice appreciated!
You could take a look at this Shuffle plugin
$('ul').shuffle();
精彩评论