0
Is it possible to apply the same style to multiple elements at the same time?
document.(body, container, text).style.backgroundColor = colors[rdmClrInt]; Note: container and text are predefined variables with the value of their respective elements
5 Antworten
+ 2
Sajid Yes using class attribute
+ 4
Sajid You can give same class to multiple elements and by using jQuery you can apply CSS.
+ 2
AJ #Infinity Love ohh right. That totally slipped out of my mind. Thanks
+ 1
AJ #Infinity Love couldn't get you.