Solved

how to open jquery dialog

Posted on 2011-09-30
4
374 Views
Last Modified: 2012-08-14
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
Comment
Question by:cofactor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 17

Expert Comment

by:sonawanekiran
ID: 36890480
show your code
0
 

Author Comment

by:cofactor
ID: 36890690
>>>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
 
LVL 40

Expert Comment

by:gurvinder372
ID: 36890866
use the modal option
http://docs.jquery.com/UI/Dialog#option-modal

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

Accepted Solution

by:
leakim971 earned 200 total points
ID: 36890870
Use the option modal:true

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

test page : http://jqueryui.com/demos/dialog/modal-message.html
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This article discusses how to implement server side field validation and display customized error messages to the client.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This video teaches viewers about errors in exception handling.
Suggested Courses

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question