jQuery Tutorial


jQuery Example


jQuery References


jQuery hover() Event Reference


  jQuery Events References


Uses

jQuery hover() event Occurs when the hover on the selected element.


Syntax

$(selector).hover(FocusIn,FocusOut)

jQuery hover() events supported following parameters.

ParameterDescription
focusIn FocusIn is Required parameter. FocusIn define mouse in the selected element.
focusOut FocusOut is Required parameter. FocusOut define mouse out the selected element.

Example

<script type="text/javascript"> 
$(document).ready(function(){
  $("div").hover(function(){
    $("div").css("background-color","pink");
    },function(){
    $("div").css("background-color","#CCCCCC");
  });
});
</script>
Online Try This Code Your Self....   »

  jQuery Events References