2 Replies Latest reply on Sep 15, 2014 9:49 AM by Jonathan Laterreur

    Close popup if exists without knowing id

    Jonathan Laterreur Newbie

      Hi,

       

      I would like to close a popup without knowing its id.

      I mean, I would like to use a Jquery selector that will give me all the popup and call hide() on it.

       

      ExtendedPartialViewContext ctx = (ExtendedPartialViewContext) FacesContext.getCurrentInstance()
        .getPartialViewContext();
      ctx.prependOnbeforedomupdate("???.hide()");
      

       

      Thanks... if anyone has a solution!