0

I want to be able to comb through a CSS stylesheet and select all matched values, then replace it using JavaScript. Let's say that I have 10+ values of "blue" in my stylesheet. Upon receiving user input, I want to change all the "blue" to "red" - I know there's the RegEx replace method but I'm not sure how to make it comb through a CSS stylesheet. Is this possible?

Thanks!

strawbee
  • 11
  • 3

0 Answers0