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
  • 4,033
  • 5
  • 32
  • 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
  • 17,397
  • 4
  • 36
  • 49