DISPLAY GALLERY ONLY AFTER SELECTION WITH DROPDOWN

Hello everybody,

I wanted to hide my gallery when the page is loaded and display my gallery when the user selects one element in the dropdown called galerieDropdown.
I tried to hide my gallery with the 1st part of the below code but I don’t manage to display when the galerieDropdown changes.
Here below my code (very simple).
Please could you help me ? I don’t undestand why my gallery doesn’t display.
Thank you very much in advance :blush:

import wixData from ‘wix-data’ ;
$w . onReady ( function () {
$w ( “#gallery2” ). hide ();
});
export function categorieDropdown_change ( event , $w ) {
$w ( “#galerieDropdown” ). show ();
$w ( “#galerieDropdown” ). enable ();
}
export function galerieDropdown_change ( event , $w ) {
$w ( “#gallery2” ). show ();
}

What is the dropdown element id? could you use the onClick function?

Is the galerieDropdown_change() event handler connected to the galerieDropdown element?

Also, please do not use all CAPS for the Subject or content of forum posts. See our community guidelines .

Hello,
Finally I did something else. Thank you for your messages and sorry for the using of caps.
Have a nice evening