Mathew Paul
Mathew Paul

Reputation: 663

modal popup more than one window in the same webpage

I have an two divs in my web page i am able to show one div as modal popup using styles how is it possible to show the other dive as modalpopup to the existing one.

Upvotes: 1

Views: 407

Answers (1)

jdavies
jdavies

Reputation: 12894

You can use the css z-index property to control the stack order of elements.

Also take a look at the JQuery plugin jqModal. Here are some examples. Specifically take a look at the Modal, Nested Modal section.

From their site:

jqModal is a plugin for jQuery to help you display notices, dialogs, and modal windows in a web browser. It is flexible and tiny, akin to a "Swiss Army Knife", and makes a great base as a general purpose windowing framework.

Another JQuery plugin which may be of interest to you (if you create the modal dialogs yourself), is the BlockUI plugin.

Upvotes: 2

Related Questions