Open same lightbox with multiple buttons

Hey,

I want to open the same lightbox with multiple buttons. I already tried creating an array of the buttons which should open the lightbox. But I am not clear how to bind my click event to them …

Any ideas how to do this in wix?

$w.onReady(()=>{
	$w("#button1, #button2, #button3").onClick(()=>{
		//your function here...............
	}) 
})
import wixWindow from 'wix-window'; 


$w.onReady(()=>{
    $w("#01b123, #03b123, #13b123, #15b123, #17b123, #19b123").onClick(()=>{
    wixWindow.open("123");
    }) 
})

with this I get the error:

external_wix_window_default().open is not a function

import wixWindow from 'wix-window'; 


$w.onReady(()=>{
    $w("#01b123, #03b123, #13b123, #15b123, #17b123, #19b123").onClick(()=>{
        wixWindow.openLightbox("LightboxName");
    }) 
})

Sorry, yes of cause somehow I lost the Lightbox part …

:wink: