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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -