はどのようにして非表示の入力フィールド「selectedquantity」の値が内側選択したラジオボタンと出力することの価値を得るのですか?選択したラジオボタンの値を取得しますか?
<div class="quantityselect">
<input type="radio" id="quantity0" name="radiobutton" value="50">
<label for="quantity0">
</label>
<input type="radio" id="quantity1" name="radiobutton" value="100">
<label for="quantity1">
</label>
</div>
<input id="selectedquantity" type="hidden" name="quantity" value="">
使用する必要があるロジックを提供しています、コードに構文エラーが含まれているためデモが動作しません: '' [name = 'radiobutton'] ''。 –
UPSは、あなたがrght @PatrickRobertsです。私は今それを修正しました。良いキャッチ。 – OptimusCrime