SyntaxFix
Write A Post
Hire A Developer
Questions
Did you try:
$(this).is(':focus');
Take a look at Using jQuery to test if an input has focus it features some more examples