This is the code i’ve been applying on my website so far which is not working.
$w.onReady(function () {
const bigBox = $w('#box0');
const firstCircle = $w('#box1');
const secondCircle = $w('#box2');
const thirdCircle = $w('#box3');
const fourthCircle = $w('#box4');
const fifthCircle = $w('#box5');
const changeBoxBtn = $w(‘#changeBox’);
const colorInput = $w(‘#input2’) ;
changeBoxBtn.onClick(event => {
bigBox.style.backgroundColor = ‘colorInput’;
bigBox.style.borderColor = ‘colorInput’;
});
Refer to the image to see the wix editor view