How to set stroke of an element through JS?

(Stephen G) #1

Hi does anyone know how to change the color of the stroke of an element?
Cant find anything in forum or documentation. Thanks.

I can change the background like this > = ‘#4CAF50’;

But I dont know how to target the stroke.
Any help much appreciated.

(Mark Hunte) #2

What do you mean by stroke.

If you mean border. Then = '#4CAF50

(Stephen G) #3

Thanks very much - simple question I know but thanks for the reply.

How would you target the text colour of an element? Many thanks Mark

(Stephen G) #4 = ‘#fff’;

got it please disregard :slight_smile: