random order of buttons on refresh in vanilla js code example
Example: random order of buttons on refresh in vanilla js
$("#parent").html($("#parent").children().sort(function() { return 0.5 - Math.random() }));
$("#parent").html($("#parent").children().sort(function() { return 0.5 - Math.random() }));