Show and Hide div in Generic JavaScript View

Hi,
You need to add your div to the page at the beginning and set the style to display: none. When the user presses the button, you just change the style to display: block. That should do the trick.
Kind regards,
Alexander

Edit: Sorry, I wrote display: none both times, but the second should of course be display: block

2 Likes