62,041
社区成员
发帖
与我相关
我的任务
分享
$(document).ready(function() {
$("#atest").click(function(){
alert("ok"); });
});
<ItemTemplate>
<button id="atest"><%# Eval("chRequest").ToString()%></button>
</ItemTemplate>
$(document).ready(function() {
$("Img[button='atest']").click(function(){
alert("ok"); });
});
<ItemTemplate>
<button name="atest" id=[不重复的值]><%# Eval("chRequest").ToString()%></button>
</ItemTemplate>