Can I put a variable from JS into SCC color code to make it possible to change the color of the text by JS. Color:rgb(x, y, z)? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can I put a variable from JS into SCC color code to make it possible to change the color of the text by JS. Color:rgb(x, y, z)?

JS controls CSS colors

27th Aug 2017, 2:21 PM
Roland De Jongste
Roland De Jongste - avatar
4 Answers
27th Aug 2017, 2:27 PM
Calviղ
Calviղ - avatar
+ 1
This just what I wanted to create myself. Thanks. I can use this code
27th Aug 2017, 3:32 PM
Roland De Jongste
Roland De Jongste - avatar
+ 1
it may possible try it
27th Aug 2017, 3:50 PM
hari
0
I tried but it didn't work.
27th Aug 2017, 5:41 PM
Roland De Jongste
Roland De Jongste - avatar