$w("#yourItemId").onMouseIn((event) => {
//write your code here (what will happen after onMouseIn event)
})
or
$w.onReady(function () {
$w("#yourItemId").onMouseIn((event) => {
//write your code here (what will happen after onMouseIn event)
})
})
onReady function is triggering when your page is ready (loaded) so when you write a code inside this function it means your function will be fired after the page loaded.
For your event listener (onMouseIn is an event listener) you can put this code inside onReady. But you don’t have to put every code into onReady.
@russian-dima Yes I meant you can create a function and put the code in the function then call the function in onReady. Actually I meant this To make the code clear.
Hi! Thank you for your answer!
I try to use your code but maybe I don’t undertand what I have to do
Can you help me with an example, please?
This is one of my code inside my website:
@andreacattonar
You will have to TRANSFORM your CODE into another CODE-Technique…
Instead of using export-functions for elements on your page, you can do it another way…
AyDontLoss already showed you the first part of code you need, now all you have to do is to convert it a little bit…
Good Morning, I am looking for assistance with this code, it worked as it should in test, but when I published it on the website, the input from the user is not showing up in the repeater. Any idea why it is not functioning correctly? Thanks,
Error message:
Property ‘onAfterSave’ does not exist on type ‘MultistateBox’.