Answers for "jquery remove focus"

1

jquery remove focus

$("#myInputID").blur(); // Use .blur().

/*
The blur event is sent to an element when it loses focus.
Originally, this event was only applicable to form elements, such as <input>.
In recent browsers, the domain of the event has been extended to include all
element types. An element can lose focus via keyboard commands, such as the
Tab key, or by mouse clicks elsewhere on the page.
*/
Posted by: Guest on July-01-2021
0

jquery remove focus from all elements

$(':focus').blur()
Posted by: Guest on August-10-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language