Answers for "Select2 multiple get values"

1

get value select 2

//get selected value
$('#mySelect2').find(':selected').val();
Posted by: Guest on January-27-2021
0

select2 multi select get selected value

alert("Selected value is: "+$(".leaderMultiSelctdropdown").select2("val"));

alternatively, if you used a regular selectbox as base, you should be able to
use the normal jquery call, too:

alert("Selected value is: "+$(".leaderMultiSelctdropdown").val());
Posted by: Guest on May-17-2021
0

jquery select2 multiple select all

$("#checkbox").click(function(){
    if($("#checkbox").is(':checked') ){
        $("select > option").prop("selected","selected");
    }else{
        $("select > option").removeAttr("selected");
     }
});
Posted by: Guest on September-15-2020
-1

select2 multiple selected values

in_array($value, $array)
Posted by: Guest on March-22-2021

Code answers related to "Select2 multiple get values"

Code answers related to "Javascript"

Browse Popular Code Answers by Language