¿Cómo puedo desenfocar un área de texto o una entrada? No pude encontrar un $('#my-textarea').unfocus();
método?
javascript
jquery
Alec Smart
fuente
fuente
.focusout()
que es ligeramente diferente deblur()
api.jquery.com/focusout , citando el documentoThis is distinct from the blur event in that it supports detecting the loss of focus on descendant elements (in other words, it supports event bubbling)