title: JQuery Mobile - event that is called when a select box is closed
body: <p>What is a possible event I can use to bind whenever the select box is closed by the x button?</p>
  
  <pre><code>        &lt;select name="select-choice-6" id="select-choice-6" class="select" multiple="multiple" data-native-menu="false"&gt;
              &lt;option&gt;Search by:&lt;/option&gt;
              &lt;option value="id"&gt;Student ID&lt;/option&gt;
              &lt;option value="permit"&gt;Permit&lt;/option&gt;
              &lt;option value="license"&gt;License Plate&lt;/option&gt;
              &lt;option value="first"&gt;First Name&lt;/option&gt;
              &lt;option value="last"&gt;Last Name&lt;/option&gt;
              &lt;option value="lot"&gt;Lot Code&lt;/option&gt;
          &lt;/select&gt;
          &lt;script type="text/javascript"&gt;
              $(document).on( "popupafterclose", ".ui-popup-container", function() {
                  alert("hi");
              });
              $("#select-choice-6").trigger("popupafterclose");
  </code></pre>