开发者

jQuery: is an element in focus? [duplicate]

This question already has answers here: Closed 11 years ago.

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.


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

Using jQuery to test if an input has focus

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜