jQuery 1.6+
$("..").is(":focus")
jQuery 1.5 and below
jQuery.expr[':'].focus = function(elem) { return elem === document.activeElement && (elem.type || elem.href); };
Forgot password?