Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

random order of buttons on refresh in vanilla js

$("#parent").html($("#parent").children().sort(function() { return 0.5 - Math.random() }));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #random #order #buttons #refresh #vanilla #js
ADD COMMENT
Topic
Name
6+6 =