$(document.activeElement)
will return the currently focused element and is faster than using the pseudo selector :focus.
More Related Contents:
- CSS Trouble adding border
- Why is my jQuery :not() selector not working in CSS?
- Wrap every 3 divs in a div
- Select deepest child in jQuery
- jQuery or CSS selector to select all IDs that start with some string [duplicate]
- Selecting empty text input using jQuery
- How to select all content between two tags in jQuery
- CSS selector case insensitive for attributes
- jQuery: Selecting all elements where attribute is greater than a value
- What CSS3 selectors does jQuery really support, e.g. :nth-last-child()?
- jQuery: select an element’s class and id at the same time?
- jQuery :contains selector to search for multiple strings
- Selecting only first-level elements in jquery
- Set Focus After Last Character in Text Box
- Set focus on div contenteditable element
- jquery nth child that is currently visible
- How do you select elements based on their style?
- :nth-of-type() in jQuery / Sizzle?
- jquery Setting cursor position in contenteditable div
- Difference between CSS selector and jQuery filter?
- How to select all elements with a particular ID in jQuery?
- Selecting text on focus using jQuery not working in Safari and Chrome
- Determining whether jQuery has not found any element
- Select last 5 elements with jQuery
- What JQuery selector excludes items with a parent that matches a given selector?
- Performance differences between using “:not” and “.not()” selectors?
- How to select first row of the first table in an html page using jQuery?
- addClass every nth
- Downloading jQuery UI CSS from Google’s CDN
- How to Parse XML Cross-domain in jQuery?