Q:

need to know a command for jqModal to close a popup

Environment:
I am using the jqModal plugin for jQuery to create popups.  I have a window that pops up.  Then by clicking a trigger inside that window opens another. 
Requirement:
I need to close the previous window after the new one opens. 
I can use $('#id').jqmHide();, but that will only hide it.  I need it to close completely like when it's using the class jqmClose on a clickable input. 
I need to close it programmatically without clicks...
Thanks! 

A:

Since this question hasn't gotten much attention, I thought I might as well put a conjecture.  If you know which classes it uses to close, you can do something like:
const el = $('#id')
el.addClass('jqmClose') //Etc.  For animations/hiding
someOtherFunctionToRunOn(el) //For additional processing, like data serializing and propogation

Does that help?