jQuery 怎样读取 DevExpress web 控件的 ID,好像无法读取
读取.Net 服务器端控件就没问题。
测试代码如下:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>jQuery -ajax test</title>
<script type="text/javascript" src="js/jquery-1.4.2.min.js">
</script> <script type="text/javascript">
$(document).ready(function(){ //无法 控制DevExpress 控件,但 .net服务器端控件就没问题???
$("*[id$=ASPxComboBox1]").change(function(){
alert("test");
}); });
</script> </head><body>
<form id="form1" runat="server">
<div>
<!-- 这是 DevExpress 控件 -->
<dxe:ASPxComboBox ID="ASPxComboBox1" runat="server">
<Items>
<dxe:ListEditItem Text="aa" Value="aa" />
<dxe:ListEditItem Text="bb" Value="bb" />
<dxe:ListEditItem Text="cc" Value="cc" />
</Items>
</dxe:ASPxComboBox> <!-- 这是 .net 控件 -->
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
</asp:DropDownList>
</div>
</form>
</body></html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货