jQuery Hover Function How To Toggle

This is a really easy way to have the jQuery hover function fire on mouse-in (hover over) and return to normal on mouse-out (no longer hovered over element). Here is the jQuery function:

<script type="text/javascript">
  $('.yourclass').hover(function(){
    alert('hover in');
  }, function(){
    alert('hover out');
  });
</script>