摘要: 例:将多个选中的checkbox的值组装成一个字符串script type=text/javascriptfunction addMem(){//var followers = document.getElementsByName("followers");var f_str = '0';$("input[@name='followers']").each(function(){ if($(this).attr("checked")==true){ f_str += ","+$(this).attr("value"); }})alert(f_str);}/script========= 阅读全文
posted @ 2010-12-20 13:25 awp110 阅读(158) 评论(0) 推荐(0)