2

Possible Duplicate:
Using jQuery to test if an input has focus

I have an input element, and I'd like to ask if it is currently in focus without modifying what is already in focus.

Community
  • 1
  • 1
Steve
  • 3,823
  • 5
  • 31
  • 29

1 Answers1

2

This can be tricky to determine sometimes, but here is an answer that should help:

Using jQuery to test if an input has focus

Community
  • 1
  • 1
Eli
  • 16,579
  • 4
  • 35
  • 49