代码:
CheckBox chk = (CheckBox)e.Item.FindControl("chkSelectAll");
chk.Attributes.Add("onclick","SelectAll(this.value)"); html代码:
<span onclick="SelectAll(this.value)"><input id="dgStudy__ctl1_chkSelectAll" type="checkbox" name="dgStudy:_ctl1:chkSelectAll" /></span>怎么onclick加到span上了呢,怎么取到input的信息?
CheckBox chk = (CheckBox)e.Item.FindControl("chkSelectAll");
chk.Attributes.Add("onclick","SelectAll(this.value)"); html代码:
<span onclick="SelectAll(this.value)"><input id="dgStudy__ctl1_chkSelectAll" type="checkbox" name="dgStudy:_ctl1:chkSelectAll" /></span>怎么onclick加到span上了呢,怎么取到input的信息?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货