I read the FAQ about hiding a textarea when I checkbox is not clicked.
But I can't get it to work. The textarea stays visible and it doesn't matter if the checkbox is checked or not. And I have no idea what I'm doing wrong.
So far I did these steps in preview: (i'm using the advanced wizard)
1. Create a checkbox element with name and field id checkbox
2. Create a textarea with name and field id textarea
3. Create a submit button
At events I did 2 steps:
1. Create a load js and put the code there from the FAQ
2. Create the show html
After saving I still have the textarea visible. So what am I doing wrong?
But I can't get it to work. The textarea stays visible and it doesn't matter if the checkbox is checked or not. And I have no idea what I'm doing wrong.
So far I did these steps in preview: (i'm using the advanced wizard)
1. Create a checkbox element with name and field id checkbox
2. Create a textarea with name and field id textarea
3. Create a submit button
At events I did 2 steps:
1. Create a load js and put the code there from the FAQ
2. Create the show html
After saving I still have the textarea visible. So what am I doing wrong?