Problem with onChange event

Hi everyone,

I created a dummy page to test the “onChange” event. For an unknown reason, I’m not able to make it work. For the little I understand, I should see something in the console log when I preview the page and change the value of #input1, but nothing happen. Here’s a screenshot of the page with codes (and with copy/paste of the name of all items on the dummy page):

Screenshot of the perview page:

Can someone give me a hint why it does not work? Thanks!

Jonathan

Hi Jonathan,

Because the way onChange handlers work on the moment you have to click somewhere else on the page for handler to take over.

Hi Gediminas,

The way “onChange” in Wix should behave is the way “onChange” behave in Access: the moment there is a change, no matter how it happened, the code is executed.

I tried clicking elsewhere on the page, like you said, and nothing happened. I added a dummy button (button1) for dummy click and nothing happened. I added an “onClick” to this button and the “onClick” works. I added an “onClick” to input1 and it works, but not “onChange”.

So, your answer helped me to find a workaround. Thanks!

Jonathan

Hi,

I had the opportunity to work with a mac and Safari this after noon and I saw “onChange” working… There’s some computer-alchemy here… Everything should work on every computer and browser using onChange" and “onClick” event. Thanks!

Jonathan

Hi,

I found why I’m having that problem… Old Firefox browser… With the last one (currently 59.0.2), everything is ok and fast!

Jonathan