A little dilemma with expandable text box

Hi everyone!

I’d want to add expandable text box to my website and I’ve been trying to build it with Wix Code, using instructions that I read from Wix Help Center. However, my process has now stopped and I don’t have any idea what’s wrong with my code. Both the text and the button just won’t work.

I added a couple of screenshots that can help to specify what kind of problem I’m having now.

Can someone kindly help me with this issue? :slight_smile: Thank you!

hi Jiri,

You must add your code inside the onReady event handler.

See the examples below for more information