Opening a Lightbox not working

This should be easy but i cant get it to work. I even copied the code from the API and have no results.

Picking a value from a dropdown menu then clicking a button should trigger the lightbox to open but im getting nothing:

import wixData from ‘wix-data’;
import wixWindow from ‘wix-window’;
:
: //some other code here
:
export function button5_click(event) {
//Add your code for this event here:
if ($w(‘#dropdown1’).value === ‘vanilla’)
(wixWindow.openLightbox(‘lightbox1’)
)}

Any suggestions? What stupid mistake have I made?

A Lightbox is opened using the Lightbox name and not the id:

This :
wixWindow.openLightbox(“LightboxName”);
Not this:
wixWindow.openLightbox(“#lightbox1”);

Yup that was the stupid mistake! Thank you very much

Glad I stumbled upon this, strange that they set it up this way!