我需要使用从此开关开始的复选框禁用和启用 3 单选按钮
jQuery("input:checked").each(function () {
var valore = jQuery(this).val();
if(str != ""){
str += " + ";
}
switch(valore)
{
case "1":
str += "casa";
if(num == "") num = "cooc €";
break;
case "2":
str += "Struttura";
if(num == "") num = "cccd";
break;
case "3":
str += "inserzione";
if(num == "") num = "ddds;";
break;
default:;
}
html
<input id="radio-01" value="3" name="radio" type="radio" class="rambo" />
<input id="radio-01" value="3" name="radio" type="radio" class="rambo" />
<input id="radio-01" value="3" name="radio" type="radio" class="rambo" />
<input id="radio-01" value="3" name="checkbox" type="checkbox" class="rambo" />
帮助我 感谢您的建议