Wednesday, May 2, 2012

Closing jquery simple dialog manually

I recently implemented JQuery Simple Modal dialog box for progress bar, i closed this using below code ::

i invoked dialog using below code ::

$("#showDialog").click();

<a href="#" rel="dialog_content" style="visibility: hidden;" class="simpledialog" id="showDialog">show</a>


<!-- content -->
<div id="dialog_content" style="display:none;">
  <img src="<%=request.getContextPath()%>/images/progress_bar.gif"/>
</div>

i closed this dialog using below code ::

$("#showDialog").close();

Thanks,

Ujjwal Soni

No comments: