I have the main content of the div, and I would like to put the dialog in this div, not on the page. Any ideas? I know that there is a utility program, but I cannot decide how to use it with the position parameters of the dialog.
You are right .position()- this is the way, like this:
.position()
$("#dialog").dialog() .parent() //remember .dialog() wraps the content in another <div> .position({ my: 'center', at: 'center', of: '#parent' }); //or just .position({ of: '#parent' });
#parent , . , my at center, , of - , .
#parent
my
at
center
of
, center my at, of, .
Source: https://habr.com/ru/post/1767048/More articles:Why are my ServiceConnection methods never executed? - androidRemote Programming IIS 6 and later - c #Can I make a dynamic .htaccess file? - phpЕсть ли альтернатива JXTA для фреймворков Java P2P? - javacannot combine a union of all kinds - sqlMy query filtering does not work the way I want - sqlJQuery Roundabout plugin does not scale text in Opera - jqueryC # Wrap primitive - c #alien versus predator search query - phpHow to do search engine optimization for web applications - ajaxAll Articles