blur(fn): blur event fires when an element loses focus : blur « jQuery « JavaScript DHTML






blur(fn): blur event fires when an element loses focus

 


To pop up an alert every time any paragraph's blur event triggers:


$("p").blur( function () { alert("Hello World!"); } );

   
  








Related examples in the same category

1.Stop people from writing in text input boxes
2.To triggers the blur event on all paragraphs: