checkbox js获得 选择的text(label)值
1 function getText()
2 {
2 {
var labels = document.getElementsByTagName("label");
3 var txt=labels[0].innerHTML;
4 alert(txt);
5 }
var labels = document.getElementsByTagName("label");
3 var txt=labels[0].innerHTML;
4 alert(txt);
5 }