日期:2014-05-16 浏览次数:20435 次
var url = "${path}/fftAction/showBillType.action?fftorg.id=" + obj.value; $.post(url,function(data){ var str = ""; if(data.zdcx == "Y"){ str+="<input type='radio' style='width: 20px;'/>"+data.cxfs; } if(data.zdxz == "Y"){ str+="<input type='radio' style='width: 20px;'/>条形码"; } $("#billType").html(str); },"json"); $("#required").show();
<input type="radio" name="sex" value="male" /> Male <br /> <input type="radio" name="sex" value="female" /> Female <hr/> <input type="radio" name="sex1" value="male" /> Male1 <br /> <input type="radio" name="sex1" value="female" /> Female1
------解决方案--------------------
里面加个统一的name就可以,<input type='radio' name='code' style='width: 20px;'/>