Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery get selected text from multiselect

 $("#id :selected").each(function (i,sel) {
   alert($(sel).text());
 });
Comment

jquery get selected text from multiselect

$("#fm_delivery_or_collection option:selected").each(function () {
   var $this = $(this);
   if ($this.length) {
    var selText = $this.text();
    console.log(selText);
   }
});
Comment

jquery get selected text from multiselect

var text = $('#selector option:selected').toArray().map(item => item.text).join();
Comment

PREVIOUS NEXT
Code Example
Javascript :: Set Custom User Agent react 
Javascript :: javascript ip 
Javascript :: sequelize update record 
Javascript :: jquery load event 
Javascript :: document get element by id style 
Javascript :: jquery merge objects 
Javascript :: jquery read href attribute 
Javascript :: jquery page finished loading 
Javascript :: if button is pressed js 
Javascript :: jquery if element is clicked 
Javascript :: angular filter array of objects 
Javascript :: meteor update package 
Javascript :: js not equal to null 
Javascript :: vuejs post 
Javascript :: settimeout 
Javascript :: javascript integer length 
Javascript :: javascript remove a specific item from an array 
Javascript :: js check if obj all false 
Javascript :: js decrement for loop 
Javascript :: insertbefore jquery 
Javascript :: Uncaught Error: Incompatibile SockJS! Main site uses: "1.0.2", the iframe: "1.0.0". 
Javascript :: how to negate a boolena variable javascript 
Javascript :: javascript order array by date 
Javascript :: append before parent jquery 
Javascript :: iterate over map key value javascript 
Javascript :: vue watch immediate 
Javascript :: link to another page and achor 
Javascript :: javascript use camera 
Javascript :: js enter key event listener 
Javascript :: localstorage javascript 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =