How to programmatically change the thumbnail color? #115
-
Hi I try this without success :
default with a empty value : try to change to pink : or
Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, First you need to update the color value in the input field: document.getElementById("color-changer").value = "#ff00ff"; Then trigger an input event on the field: document.getElementById("color-changer").dispatchEvent(new Event("input", { bubbles: true })); |
Beta Was this translation helpful? Give feedback.
Hello,
First you need to update the color value in the input field:
Then trigger an input event on the field: