0
<div class="perWatchVideo" id="remove">
<div class="controls">
<input type="link" id="link" name="link" placeholder="Place Link here" class="linkInput">
<button class="btn btn-primary loadVideo">Load Video!</button>
</div>
</div>
jquery
$(document).ready(function(){
$("loadVideo").click(function(){
$("#remove").removeClass("preWachVideo");
});
});
からクラスを削除し、私はperWatchVideoというクラスを作成しました。ボタンをクリックすると、このクラスを取り除き、別のクラスであるpostWatchVideoクラスに置き換えたいと考えています。どのようにjQueryでこれを行うことができますか?