Need help: image display via click

I was able to find the exact solution to my problem. It took writing some code in dev mode to make it happen. This is the code function that I used:

export function button9_click ( event ) {
$w ( ‘#videoPlayer1’ ). show ()
. then (() => {
$w ( ‘#imageX15’ ). hide ()
})
}