代碼如下
js :
function shows(zhiId, shuxing, waiType) {
alert("111");
if (document.getElementById("RadioButton1").checked == true) {
alert("1");
waiType = 1;
}
else if (document.getElementById("RadioButton2").checked) {
alert("2");
waiType = 2;
}
window.location.href = 'zhiLookDetail.aspx?zhiId=' + zhiId + '&shuxing=' + shuxing + '&waiType=' + waiType;
}
求大神 指點迷津~
你那樣取肯定取不到的,因為RadioButton1是服務端控件的id,你要取只能查看網頁代碼,找到頁面生成的radio button的id,
類似這樣的,id="XXX_RadioButton1"