javascript - Debugging issues : detect where my focus is with jQuery? -
forcing focus() on element easy, after having debug issues, realize trying determine focus gone lot harder. thing i'm generating modal window using jq.ui, , time time, while focus supposed set on first input of form inckuded in modal, cursor disappears, never show again unless reload page.
is there straightforward way detect focus/cursor ?
thanks lot.
you can see element it's on checking document.activeelement
, example:
alert(document.activeelement.innerhtml); //see content aid in iding
Comments
Post a Comment