Find focusable element in a control visual child or logical
I want to find is any focusable element present in a control's visual or logical childerens? Is it possible to find with our any loop itetrartion? or build in methods?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sibeesh VenuRank #27 · 42.9K reputationPosted Nov 24, 2014, 8:02 PM EST
// Get the focused element:
var $focused = $(':focus');
// No jQuery:
var focused = document.activeElement;
// Does the element have focus:
var hasFocus = $('foo').is(':focus');
// No jQuery: elem === elem.ownerDocument.activeElement;
http://stackoverflow.com/questions/11277989/how-to-get-the-focused-element-with-jquery
Mike Steve64 reputationPosted Nov 24, 2014, 8:13 PM EST