.aspx 代码: <asp:DropDownList ID="ddlStreetAdd" runat="server"></asp:DropDownList>
JS中IE10解析:
<select name="ctl00$contentHolder$ddlStreetAdd" id="ctl00_contentHolder_ddlStreetAdd" ">
JS中IE9解析:
<select name="ctl00$contentHolder$ddlStreetAdd" id="contentHolder_ddlStreetAdd" onchange="setCommunity();">
用Jquery抓取ID,不用判断浏览器怎么可以抓取到?
------解决方案--------------------
<asp:TextBox ID="txtUserID" runat="server"></asp:TextBox>
$("#<%=txtUserID.ClientID%>")
------解决方案--------------------
楼上正解 ClientID可以解决,,
另外说下 Jquery不是只有ID选择器的.......