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

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

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -

asp.net - call stack missing info on mono with apache and mod_mono -