Why "this()" is not working here

Why "this()" is not working here

Hi,

This works:

  1.  if( $('.messages.error').length ) {
  2.        $('.messages.error').focus();
  3.      }

But this doesn't:

  1.  if( $('.messages.error').length ) {
  2.        $(this).focus();
  3.      }

Why?