Javascript examples for jQuery:Form Text Input
blur event on input text
<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>