Jquery dialog close by clicking link -


i'm new use jquery ui. i'd create modal dialog box , close when click on link or image within modal box.

i found way hide close button,but don't know how set popup close on click or add image link inside box.

can provide me full code obtain this?

if @ documentation ( http://docs.jquery.com/ui/dialog#methods ) can see there close function. when creating dialog can attach click event arbitrary element (a new close link/image/button/anything) calls close function on dialog object:

var my_dialog = $('#my_div').dialog({});//options, etc  $('#my_div .my_close_link').click(function () {   my_dialog.close(); }); 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -