Answers for "remove all option from select jquery and add new select 2"

4

remove all options from select jquery

$('#mySelect')
    .empty()
Posted by: Guest on March-18-2020
0

select2 remove selected value

$("#dynamicAttributes").val(null).trigger("change");
Posted by: Guest on August-05-2021

Code answers related to "remove all option from select jquery and add new select 2"

Code answers related to "Javascript"

Browse Popular Code Answers by Language