While changing images with JS function how do I change the CSS color and box shadow properties on the border with same click? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

While changing images with JS function how do I change the CSS color and box shadow properties on the border with same click?

12th Aug 2017, 3:20 PM
Shawn Gillis
Shawn Gillis - avatar
3 Answers
+ 2
Show me how did you change the text and images with Javascript function. I will try to add the color and box shadow for you.
12th Aug 2017, 4:13 PM
Calviղ
Calviղ - avatar
+ 1
You mean: var change=document.getElementById("myimage"); change.style.color="red"; ??? If it is so, check the DOM courses at the JavaScript Tutorial... Hope it helps...
12th Aug 2017, 3:32 PM
Ledio Deda
Ledio Deda - avatar
12th Aug 2017, 10:38 PM
Falcon ψ
Falcon ψ - avatar