Hi,
I added some code to my wix template, hide/show text on a button click. It works in the preview, chrome and safari, but not in Firefox. In Firefox the text that is hidden doesn't show on page load, but then nothing happens when I click the button. I can't figure out why. Is there other code I need to add to make it work? Thanks!
Example code:
export function button1_click(event, $w) { $w('#text1').hide(); $w('#text13').show();
Hi,
If it works on their end, it seems like a local issue. I recommend checking that there are no error messages. Moreover, I recommend following the troubleshooter instructions here.
Best,
Tal.
The } is there, I just forgot to paste it in. It doesn't work on Firefox for me (Mac), my mom, or my friend (pc). But the wix support says it works on there end. It's for a client, so I need to be sure that it works. Maybe it will work once the site is pushed live?
export function button1_click(event, $w) { $w('#text1').hide(); $w('#text13').show();
This is missing } but maybe you just forgot to paste it in? It should work in Firefox as well.