Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

select2 get selected value

//get all selected select object
$('#select2Id').find(':selected');

//get all selected value 
$("#select2Id").select2("val");
Comment

select2 find option by value

$('#Select2ID option[value="actualVal"]).text()
Comment

PREVIOUS NEXT
Code Example
Javascript :: convert time string in javascript 
Javascript :: activeclassname in react router v6 
Javascript :: react native text ellipsis 
Javascript :: reactive forms change event in angular 
Javascript :: how to read file extension in a folder in node js 
Javascript :: javascript extract number from string 
Javascript :: js clone element 
Javascript :: viewchild for ngfor 
Javascript :: react native import svg image 
Javascript :: how to append values to dropdown using jquery 
Javascript :: regex separator 
Javascript :: how to take input in javascript in coding 
Javascript :: check if new user in firebase react 
Javascript :: what 1hr in milliseconds in javascript 
Javascript :: javascript sort array of objects by key value 
Javascript :: moment time ago format reactjs 
Javascript :: check if document is ready js 
Javascript :: post data from api using jquery ajax 
Javascript :: chrome add a javascript bookmark 
Javascript :: regex char and number 
Javascript :: remove duplicate json object from array javascript 
Javascript :: get closest element id jquery 
Javascript :: cypress get element val and return it 
Javascript :: swal change confirm button class 
Javascript :: Warning: Failed child context type: Invalid child context `virtualizedCell.cellKey` of type 
Javascript :: contenteditable paste plain text 
Javascript :: vuejs bootsrap modal hidden event 
Javascript :: javascript array to object with keys 
Javascript :: firestore add document 
Javascript :: javascript loop over dictionary 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =