Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 382
  • Last Modified:

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 ?

0
cofactor
Asked:
cofactor
1 Solution
 
Kiran SonawaneProject LeadCommented:
show your code
0
 
cofactorAuthor Commented:
>>>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 ?
0
 
Gurvinder Pal SinghCommented:
use the modal option
http://docs.jquery.com/UI/Dialog#option-modal

$( "#div_id" ).dialog({ modal: true });
0
 
leakim971PluritechnicianCommented:
Use the option modal:true

$("#div_id" ).dialog({ "modal": true });

test page : http://jqueryui.com/demos/dialog/modal-message.html
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now