dialog afetr clicking on image

dialog afetr clicking on image

Hello
I Have an image and onlick dialog appears
$('#.myImg').dialog();

It works fine but when I close the dialog and click on the image again nothing happens.

Thanks for help