JS监听了select的onchange事件


<select id="sel_YJCL" runat="server"></select>

<input type="button" id="btn_YJCL" runat="server" style="display: none" onserverclick="dp_YJCL_SelectedIndexChanged" />

$(document).ready(function () {
    $("#sel_YJCL").combobox({
        onChange: function (n, o) {
            //监听了select的onchange事件 
            document.getElementById("btn_YJCL").click();
        }
    });
});

/// <summary>
/// 绑定数据
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void dp_YJCL_SelectedIndexChanged(object sender, EventArgs e){

  

}

 

 

posted @ 2022-08-25 16:03  尧荣华  阅读(741)  评论(0编辑  收藏  举报