ホバー イベントを 2 つの要素に同時に割り当てようとしています。これを行うためのより良い方法はありますか?
//I want to assign hover to another element.
$element1=$('hi');
$element2=$('hi2');
//I need to assign element 1 and element 2 to the same hover function...
$element1.hover(function(e){
codes......
})
助けてくれてありがとう。