jQuery Tutorial


jQuery Example


jQuery References


jQuery focusin() Event Reference


  jQuery Events References


Uses

jQuery focusin() event Occurs when the element gets focus.


Syntax

$(selector).focusin(function()) 

jQuery focusin() events supported following parameters.

ParameterDescription
functionFunction is Optional parameter. Function define the ready to run when event occur.

Example

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

  jQuery Events References