I'm using Zurb's Reveal to display modal windows on a webpage.
I have to display a small modal window on an already opened modal window (the latter contains a form).
I added onclick="$('#ypopup').reveal();"
to an a
element on the form, and set the z-index of #ypopup
(the second modal div) to 9999. This way the second modal shows up well.
But when I close it, not only the second modal disappears, but also the background of the first modal. The first modal remains visible, however it can't be closed. Only a page reload helps.
Is it possible to have a second reveal modal on an open reveal modal window?