how to assign the hover to 2 elements
<p>I am trying to assign hover event to 2 elements at the same time. Are there better ways to do this?</p>

<pre><code>//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......

   })
</code></pre>

<p>Thanks for any helps.</p>
