Ciao a tutti!
Sto cercando un modo per sapere se un input text di un form ha il focus attivo per eseguire alcune istruzioni.
in pratica sto cercando un metodo che mi restituisca TRUE se il campo ha il focus e FALSE se il campo non ha il focus.
La cosa migliore sarebbe una cosa tipo il:
this.checked
pero cercando un po in internet non ho trovato una cosa del genere...
ho provato con:
this.focused oppure this.hasFocus, ma mi restituisce undefined.
Grazie in anticipo!