$(document).ready(function(){
/* The following code is executed once the DOM is loaded */
$('.box-wrap').bind("click",function(){
$(this).find('.card').addClass('flipped').bind('click',function(){
$(this).removeClass('flipped');
});
});
return false;
});
div を再度クリックすると機能しますが、別の div を 2 回クリックすると、スクリプト全体が機能しません。コンソールにもエラーにも兆候はありません。私はjQueryが初めてで、これを理解できません。
$(this).find('.card').addClass('flipped').mouseleave(function(){
このコードは機能しますが、探しているものではありません。助けてください