js 获得某个DIV里面的checkbox
2007-10-12 11:11
var list = "";
var cks = document.all("bhd").getElementsByTagName("input"); var len = cks.length; for(i=0;i<len;i++) { if(cks[i].type == "checkbox") { list += cks[i].value; } } |