Hello,
I tried to work with jQuery UI dialog with containment. It actually works.
This code will enable the user to drag the dialog within the body.
The second thing I want it to enable modal. I usually do this with:
Here is my jquery code that will enable the containment mode:
Can somebody help me to enable modal true again with containment?
Thanks a lot,
grid
I tried to work with jQuery UI dialog with containment. It actually works.
This code will enable the user to drag the dialog within the body.
The second thing I want it to enable modal. I usually do this with:
Code:
$(document).ready(function() { $("#dialog-modal").dialog({ width: 500, height: 500, modal: true, autoOpen: false, resizable: false, open: close, close: open });
Code:
$(document).ready(function () { $("#dialog").dialog(); $('.ui-dialog').draggable( "option", "containment", 'body' ); });
Thanks a lot,
grid
Comment