Title: Programatically Close the modal window
Last modified: September 25, 2017

---

# Programatically Close the modal window

 *  [dipaksaraf](https://wordpress.org/support/users/dipaksaraf/)
 * (@dipaksaraf)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/programatically-close-the-modal-window/)
 * Is it possible to close the modal window on Ajax success. I show some form on
   the modal window which when submitted is process using Ajax and returns when 
   successful. I need to find the way to hide this modal, so i need to know the 
   function name used in JS to generate the modal so that i can hide it programmatically.
 * Any input in this would be appreciated….

Viewing 1 replies (of 1 total)

 *  Plugin Author [Wow-Company](https://wordpress.org/support/users/wpcalc/)
 * (@wpcalc)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/programatically-close-the-modal-window/#post-9530012)
 * Hello.
 * You can create an imitation of click on close button as:
 * $(‘#wow-modal-close-X’).trigger(‘click’);
 * Where X – id of a modal window

Viewing 1 replies (of 1 total)

The topic ‘Programatically Close the modal window’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mwp-modal-windows_b77b64.svg)
 * [Wow Modal Window - plugin for easily creating popup windows](https://wordpress.org/plugins/mwp-modal-windows/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mwp-modal-windows/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mwp-modal-windows/)
 * [Active Topics](https://wordpress.org/support/plugin/mwp-modal-windows/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mwp-modal-windows/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mwp-modal-windows/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Wow-Company](https://wordpress.org/support/users/wpcalc/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/programatically-close-the-modal-window/#post-9530012)
 * Status: not resolved