Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
特定の要素または別の要素をクリックしているかどうかを確認したい:
((delete_box) || (man)).click(function(){ overlay.fadeIn('fast',function(){ box_2.animate({'top':'200px'},500); }); });
このコードでは、変数manのみを取得し、ボックスの削除は取得しません。
何か助けはありますか?
試す
$(delete_box).add(man).click(function(){ overlay.fadeIn('fast',function(){ box_2.animate({'top':'200px'},500); }); });
また
$([delete_box,man]).click({..});)