Answers for "select2 on select get value"

0

select2 get data attribute value

$('#payment_method').select2('data')[0]
Posted by: Guest on July-20-2020
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

Code answers related to "select2 on select get value"

Code answers related to "Javascript"

Browse Popular Code Answers by Language