Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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.
*/
Comment

jquery remove focus from all elements

$(':focus').blur()
Comment

PREVIOUS NEXT
Code Example
Javascript :: Uncaught TypeError: console.log is not a function 
Javascript :: javascript count table rows 
Javascript :: ng class in angular 
Javascript :: how to change text to italic in javascript 
Javascript :: yarn build react 
Javascript :: insert json file in python 
Javascript :: prop-types install npm 
Javascript :: react router refresh page 
Javascript :: sequelize sync 
Javascript :: discord bot playing game 
Javascript :: array remove index from array 
Javascript :: js listen for class change event 
Javascript :: angular datatable reload with pagination 
Javascript :: console table js 
Javascript :: onchange not working input jquery 
Javascript :: fibonacci sums javascript 
Javascript :: date-and-time npm 
Javascript :: jquery hasclass 
Javascript :: refresh page and run function after javascript 
Javascript :: how to make hide/show btn in js 
Javascript :: eject expo app to android and react native 
Javascript :: datatable 
Javascript :: mongoose find one and update with new field 
Javascript :: javascript expressions 
Javascript :: javascript caesar cipher 
Javascript :: js convert truthy 
Javascript :: how to get href value of anchor tag in jquery in list 
Javascript :: js load js file 
Javascript :: mongoose findoneandupdate 
Javascript :: js function pick properties from object 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =