html element get class property code example
Example: js get class property
let element = document.querySelector('.preset');
let style = getComputedStyle(element);
let bg = style.backgroundColor;
let element = document.querySelector('.preset');
let style = getComputedStyle(element);
let bg = style.backgroundColor;