Answers for "html get class property"

1

html get class property

let element = document.querySelector('.preset');
let style = getComputedStyle(element);
let bg = style.backgroundColor;
Posted by: Guest on June-15-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language