我有一个自定义选项,其中包含 2 个选项。没有按钮组或 Magento 创建的东西,单选按钮和标签在 <ul> 中,那么我将如何获得选定的单选按钮?这是代码:
<ul id="options-22-list" class="options-list">
<li>
<input id="options_22_2" class="radio validate-one-required-by-name product- custom-option" type="radio" price="6.8" value="40" name="options[22]" onclick="opConfig.reloadPrice()">
<span class="label">
<label for="options_22_2">
option1
<span class="price-notice">
+
<span class="price">€6.80</span>
</span>
</label>
</span>
</li>
<li>
same as above just with the other option and other ids
</li>
</ul>
谢谢!