SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to confirm if focus is with an element then
if ($('#inputId').is(':focus')) { //your code }