Solved

how to open jquery dialog

Posted on 2011-09-30
4
371 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
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

776 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