ラジオボックスを自動選択する jquery コードを取得できません。これが私のhtmlです:
<div class="formField rsform-block rsform-block-existingcustomer" style="margin-bottom: -22px;">
<!--<input name="form[existingCustomer]" type="radio" value="Yes" id="existingCustomer0" /><label for="existingCustomer0">Yes</label><input checked="checked" name="form[existingCustomer]" type="radio" value="No" id="existingCustomer1" /><label for="existingCustomer1">No</label><br/>
<span id="component100" class="formNoError">Please tell us if you're an existing customer.</span>-->
Are you an existing client?<br>
<label for="existingCustomer0" class="radio"><span class="icon"></span><span class="icon-to-fade"></span>Yes
<input name="form[existingCustomer]" type="radio" value="Yes" id="existingCustomer0" class="addRadio">
</label>
<label for="existingCustomer1" class="radio checked"><span class="icon"></span><span class="icon-to-fade"></span>No
<input checked="checked" name="form[existingCustomer]" type="radio" value="No" id="existingCustomer1" class="addRadio" style="display:none;">
</label>
</div>
そして、これを行うはずの jQuery コードのスニペットを次に示します。
if(aaid) {
var num_one = aaid;
jQuery('input[value="Yes"]').prop('checked', true);
誰かが問題を見ていますか?「はい」チェックボックスを自動選択して、ドロップダウンメニューを作成する次の部分をアクティブにしようとしています。
前もって感謝します!:)