I guess my question has two parts:
1) How can I test that an element received focus state?
2) In console after running $(my_input).focus()
, I run $(my_input).is.(':focus')
and get false
. And yet, document.activeElement
returns my input. Why is that?
Thanks a lot for your help!
Aucun commentaire:
Enregistrer un commentaire