我需要使用javascript设置在opencart 2.3上选择的默认单选按钮 Normal Selected
<div class="radio" style="margin-top: -5px;"><!--EOF Related Options-->
<!--BOF Related Options--><label for="option-value-2492"><!--EOF Related Options-->
<!--BOF Related Options-->
<input type="radio" name="option[590]" value="2492" id="option-value-2492" master-option-value="0" option-value="115">
<!--EOF Related Options-->
Comprar par </label>
</div>
&#13;
答案 0 :(得分:1)
添加选中=&#34;选中&#34;
<input type="radio" name="option[590]" value="2492" id="option-value-2492" master-option-value="0" option-value="115" checked="checked">