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.

10th Jul 2018, 9:58 AM
Nayem
3 odpowiedzi
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?
11th Jul 2018, 5:51 AM
Janning⭐
Janning⭐ - avatar
0
I have done it may be not the best way https://code.sololearn.com/WgSDS8A3mRXO/#html
11th Jul 2018, 6:02 AM
Nayem
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
11th Jul 2018, 11:45 AM
Janning⭐
Janning⭐ - avatar