This answer tells which HTML elements can receive focus. Is there a jQuery selector that matches exactly these elements?
For now I\'m just using $(\'input,sele
You could check for elements that have the focus() function:
$('*').each(function() {
if(typeof this.focus == 'function') {
// Do something with this element
}
}) ;
Edit
Thinking a little more, it would probably makes sense to have *:visible rather than just * as the selector for most applications of this.