highchartsdude highchartsdude - 1 year ago 144
Javascript Question

How do I close the other modal dialog box?

I have the following example http://jsfiddle.net/zidski/Mz9QU/1/

If you click on Link2 and then Link1 I want Link2 box to close.

Can anyone help?

Answer Source

I forked your fiddle

The fix just involves calling your close_model() function before the show_modal() function to close any other open modals before opening the new one :)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download