DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+6 =
Submit