Triggers the blur event of each matched element : trigger « jQuery « JavaScript DHTML






Triggers the blur event of each matched element

    

<html>
  <head>
    <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
             $("input").blur(function () {
                $(this).next("span").css('color','red');
             });

        });
    </script>
  </head>
  <body>
    <body>
       <p><input type="text" /> <span>blur fire</span></p>
       <p><input type="password" /> <span>blur fire</span></p>

    </body>
</html>

   
    
    
    
  








Related examples in the same category

1.Trigger Another Event
2.Triggered By Select Change Event
3.Trigger handler
4.Trigger Submit Event
5.Trigger a custom event
6.trigger(type , data )
7.To submit the first form without using the submit() function
8.Display a "Hello World!" alert box.