Skip to content
Advertisement

How can I open multiple dialog boxes in a single page?

I am trying to open multiple dialog boxes in one page with an iframe inside to resemble a browser window.

I have an example here: http://jsfiddle.net/pxQ8j/770/

The first icon opens up when clicked as I want it to, however the second dialog doesn’t and the div contents remain unhidden.

I am also curious how I can remove the double scroll bars that show when the dialog is being resized.

Thank you in advance!!

code:

JavaScript

JavaScript

JavaScript

Advertisement

Answer

For value of attributes in HTML you must use " , not

HTML attributes syntax is name="value" (HTML Attributes)

please change id= “hats” to id="hats"

JavaScript
JavaScript
JavaScript
Advertisement