0
How I can set random style for a few items?
How to set random style for some element. and those element will change by clicking a button using javascript.
3 Answers
0
Hi Tasin,
Maybe it would help if you provide a link to the code you are currently working on so we have better context for your attempts so far?
0
I have done it may be not the best way https://code.sololearn.com/WgSDS8A3mRXO/#html
0
Fabulous work, Nayem!
The concept would be the same as your color changer, except you sort of step back a bit in the DOM. See:
https://www.w3schools.com/jsref/prop_html_classname.asp