I have an input box with an SVG circle inside of it:
input{
background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30'><circle cx='15' cy='15' r='10' /></svg>") no-repeat;
}
Using Javascript how can I change the color of the circle to red (say when a user enters something illegal)?