how to set and create new id and class of element dom code example
Example: html 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;