blur event on input text - Javascript jQuery

Javascript examples for jQuery:Form Text Input

Description

blur event on input text

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> 
      <script type="text/javascript">
$(document).ready(function(){
$("#blurr").blur(function(){
  $(this).css("color","yellow");
});/*from  w w  w.ja v a2s  .co m*/
$("#blurr").focus(function(){
    $("#blurr").css("color","red");
  });
});

      </script> 
   </head> 
   <body> 
      <input type="text" id="blurr" value="click Here">  
   </body>
</html>

Related Tutorials