jquery UI Combobox ONCHANGE

前端 未结 8 983
死守一世寂寞
死守一世寂寞 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 13:52

    It says in the "Events" section of the documentation, that you handle a change like this...

    $( ".selector" ).autocomplete({
       change: function(event, ui) { ... }
    });
    

提交回复
热议问题