每当x按钮关闭选择框时,我可能会使用什么事件来绑定?
<select name="select-choice-6" id="select-choice-6" class="select" multiple="multiple" data-native-menu="false">
<option>Search by:</option>
<option value="id">Student ID</option>
<option value="permit">Permit</option>
<option value="license">License Plate</option>
<option value="first">First Name</option>
<option value="last">Last Name</option>
<option value="lot">Lot Code</option>
</select>
<script type="text/javascript">
$(document).on( "popupafterclose", ".ui-popup-container", function() {
alert("hi");
});
$("#select-choice-6").trigger("popupafterclose");