Hello guys am working on a colorpicker named colpick, i am using .css() for changing the colors of different elements and i uses same .css() a repeatedly in my js and the elements are more so i started var the elements and using var for them something like this
var colorElement = "a, upper"
$(colorElement).css('color', '#' + hex);
but i also wants to edit the color/style of the element when we hover, and all then when i try to add elements with :hover or :link or :focus or active,etc like this
var colorElement = "a:hover, upper:focus, headline:active, bar, footer"
$(colorElement).css('color', '#' + hex);
then it stop working (those pseudo containing elements not work) so any idea how i can use them ?
Regards,