EasyUi 下拉选择框onchage( )事件

HTML页面代码:

<th>&nbsp;所在仓库:</th>
                    <td><input id="storageIdSearch" name="storageIdSearch" class="easyui-combobox"
                               data-options="width:150"/>
                    </td>

如果使用js默认的onchang()监听器,没有作用的。必须使用easyui中的控件类中的onchang()事件,具体砖块如下:

 $("#storageIdSearch").combobox({

        onChange: function (n, o) {

            alert($("#storageIdSearch").val());

        }
    });

猜你喜欢

转载自blog.csdn.net/u013719012/article/details/77334922