checkbox value

function checkset()
{
 var boxObj = document.getElementsByName("checkbox");
 for(i=0;i<boxObj.length;i++)
 {
  if(boxObj[i].checked)
  {
     document.getElementById("ctl00_ContentPlaceHolder1_hid").value = boxObj[i].value
     var b= document.getElementById("ctl00_ContentPlaceHolder1_hid").value;
     alert(b);
  }
 }
}
posted @ 2009-08-18 08:50  ting_gt  阅读(142)  评论(0编辑  收藏  举报