I can’t figure out where I am going wrong!
[I am a novice at coding, of course!!]
I have the following code, added in the page tab, for buttons in a multi-state box…
import wixWindow from 'wix-window';
$w.onReady(function () {
$w("#button1").onClick(() => {
$w('#statebox8').changeState("State2")
} );
$w("#button2").onClick(() => {
$w('#statebox8').changeState("State1");
$w('#columnStrip17').scrollTo(true);
} );
});
The first two functions (the ‘changeState’ commands) are running fine - and things are happening as I expect…
But the last part, where I want the window to scroll to the next section of the page - REFUSES TO HAPPEN!
Where am I going wrong?