1. 程式人生 > >DropDownList onchange 事件

DropDownList onchange 事件

UNC true .aspx count -- lis nbsp pack ati

 
function show_sub(v) {
            //alert(v);

            var param = "";
            param += "PId=" + $("#PId").val();
            param += "&type=" + $("#HidType").val();
            param += "&select=" + v;
            var url = "PackageAddWayBills.aspx?" + param;
            //wwwwalert(url);
window.location.href = url; }

  

<asp:DropDownList ID="DDLCountry" CssClass="DDLCountry" runat="server" onchange="show_sub(this.options[this.options.selectedIndex].value)">
                    <asp:ListItem Text="--請選擇--" Value="0"></asp:ListItem>
                </asp:DropDownList>

  

DropDownList onchange 事件