Forum Moderators: not2easy
I want to use a pseudo attribute selector and say:
if HTML attribute A is equal to value A, then set HTML attribute B to value B
OR
if HTML atruibute A is equal to value A, then set attribute A to value B
Ether one would do in my case.
I know how to use pseudo (tag[attribute=value]) but I am not sure how to set non CSS values (ex. href or src) using CSS.
I am not sure if this is clear enough, ask me for more info if it is not clear.
(Oh, attribute support with browsers I think is still very, very minimal too, anyway :D)
You can't use CSS to change attributes themselves - CSS doesn't change HTML itself, merely how it is displayed.
As aforementioned, use Javascript.