jquery - perform effect on any event
<p>i have 5 elements in a page.
i have selected them using class names  <code>$('.class')</code></p>

<p>i am trying to perform a function for those selected elements irrespective of event (click or hover or watever).  </p>

<p>eg:</p>

<pre><code>$('.class').hover(function(){definition1});  
$('.class').click(function(){definition1});
</code></pre>

<p>i dont want to have 2 seperate event as above 2, instead i want the function to be executed irrespective of whether its hover or click event.</p>
