1var focus = 0,
2 blur = 0;
3$( "p" )
4 .focusout(function() {
5 focus++;
6 $( "#focus-count" ).text( "focusout fired: " + focus + "x" );
7 })
8 .blur(function() {
9 blur++;
10 $( "#blur-count" ).text( "blur fired: " + blur + "x" );
11 });