チェックボックスにチェックをつけるとdisabledが無効になる機能を実装したいのですが、
チェックボックスの判定がうまく取得できません。
HTML側 <input type="checkbox" id="AgreeBtn"><label for="AgreeBtn">同意する。</label> <input type="button" name="confirmate" id="confirmate" value="送信する" disabled>
JS側 $("#AgreeBtn").on('change', function(){ if($(this).prop('checked')){ $("#confirmate").prop('disabled',false); }else{ $("#confirmate").prop('disabled',true); } });
どなたかご教授おねがいいたします。

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/01/12 04:28