cofactor
asked on
how to open jquery dialog
I open a jquery dialog this way
$("#div_id").dialog('open' ); <---this works
source: http://jqueryui.com/demos/dialog/
But I want a modal dialog so that background gets disabled.
similar to this..
http://jqueryui.com/demos/dialog/#modal
What changes I need to do in my code ?
$("#div_id").dialog('open'
source: http://jqueryui.com/demos/dialog/
But I want a modal dialog so that background gets disabled.
similar to this..
http://jqueryui.com/demos/dialog/#modal
What changes I need to do in my code ?
show your code
ASKER
>>>show your code
Here is my code
$("#div_id").dialog('open' );
what changes I need here so that when the dialog opens background be disabled ?
Here is my code
$("#div_id").dialog('open'
what changes I need here so that when the dialog opens background be disabled ?
use the modal option
http://docs.jquery.com/UI/Dialog#option-modal
$( "#div_id" ).dialog({ modal: true });
http://docs.jquery.com/UI/Dialog#option-modal
$( "#div_id" ).dialog({ modal: true });
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.