//将选择标签 var addCode = function () { var codes = []; var elements = document.getElementsByName("label"); for (var i = 0; i < elements.length; i++) { if (elements[i].checked == true) { var temp = elements[i].getAttribute("value"); cod
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Typ
本文摘自:http://www.cnblogs.com/xcj1989/archive/2011/06/29/JQUERY_RADIO.html /*---------------------------JQuery判断radio是否选中,获取选中值----------------------------------*/ 其他对radio操作功能,以后在添加.直接上代码,别忘记引用JQuery包 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0