Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

select first option in dropdown jquery

myElement.find('option:eq(0)').prop('selected', true);
Comment

PREVIOUS NEXT
Code Example
Javascript :: To load an ES module, set "type": "module" in the package.json or use the .mjs extension. 
Javascript :: update version of node gyp 
Javascript :: onclick for dynamically created element jquery 
Javascript :: js if not undefined 
Javascript :: iterate object javascript 
Javascript :: jquery check if empty object 
Javascript :: remove required attribute jquery 
Javascript :: ejs if else 
Javascript :: clear terminal node js 
Javascript :: react native init specific version 
Javascript :: on keyup jquery 
Javascript :: js local storage delete key 
Javascript :: js date add 1 day 
Javascript :: page reload timeout 
Javascript :: addclass js vanilla 
Javascript :: make react app 
Javascript :: js is object empty 
Javascript :: change display javascript 
Javascript :: skip import angular 6 
Javascript :: check if path is folder js 
Javascript :: regexs url image 
Javascript :: just number regex js 
Javascript :: mouseover angular 6 
Javascript :: js arrondir a deux decimal 
Javascript :: jquery wait for element to exist 
Javascript :: angular pipe capitalize 
Javascript :: js new line regex 
Javascript :: js get current time minutes 
Javascript :: javascript convert seconds to minutes seconds 
Javascript :: regex remove non numeric 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =