jquery UI Combobox ONCHANGE

前端 未结 8 988
死守一世寂寞
死守一世寂寞 2020-12-02 13:28

how can I attach an onchange function in a jqueryUI combobox? Here is my code:

$(\".cmbBox\").combobox({
     change:function(){
         alert($(this).val()         


        
8条回答
  •  孤街浪徒
    2020-12-02 14:05

    In fact, there's already a "hook" for the onchange event.

    Just change the following line for the method call or the callback that you want:

    autocompletechange: "_removeIfInvalid"
    

提交回复
热议问题