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 :: df.saveto json 
Javascript :: get params from route vuejs 
Javascript :: avoid no-param-reassign when setting a property 
Javascript :: js window history 
Javascript :: hover con js 
Javascript :: javascript timeout 
Javascript :: Reverse a String With Built-In Functions 
Javascript :: how to open component as a dialog in angular 
Javascript :: how to remove character from string in javascript 
Javascript :: how to create an array in node js 
Javascript :: javascript is array a subset of array 
Javascript :: how to sort array without using sort method in javascript 
Javascript :: node js load css file 
Javascript :: nodejs console.log timestampt 
Javascript :: get form data as object jquery 
Javascript :: set auth header on axios instance 
Javascript :: jquery confirmation dialog example 
Javascript :: jquery select dropdown option 
Javascript :: convert string to camel case 
Javascript :: toggle class jquery not working 
Javascript :: search functionality in jquery 
Javascript :: change px string to number 
Javascript :: difference between react native and react 
Javascript :: angularjs round to 2 decimal places input 
Javascript :: action checkbox selected vue js 
Javascript :: javascript reduce 
Javascript :: Repeat a String Repeat a String 
Javascript :: uploading file with fetch in js 
Javascript :: javascript get referrer 
Javascript :: how to redirect in jquery onclick 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =