I have this code :
<div id="my-color-picker-1" class="color-picker jcolor-picker">
<div data-type="btn" style="background: rgb(150,78,78)"></div>
</div>
I want to get this color : rgb(150,78,78)
;
I tried like this :
let x = document.getElementsByClassName("color-picker").firstChild;
But I have an undefined error.
Can you please give me some advices ?
Thx in advance.