Hello I am using a jquery supplied dialog modal popup, see: http://jqueryui.com/dialog/#modal-message It seems that by default the dialog box appears in the middle of the frame. I would like to have the modal box next to a button on my webpage. How would I go about doing this? What code would I add?
Thanks!
The code for the modal box is in the link
From ui dialog documentation
// Getter
var position = $( ".selector" ).dialog( "option", "position" );
// Setter
$( ".selector" ).dialog( "option", "position",{ my: "left top", at: "left bottom", of: button } );
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.