Answers for "how to reset select2 option in jquery"

1

jquery clear select 2

$('select2element').val(null).trigger("change")
Posted by: Guest on April-12-2021
0

reset a select option jquery

$('#baba').prop('selectedIndex',0);
Posted by: Guest on September-10-2021
0

reset select form jquery

$('select').each( function() {
        $(this).val( $(this).find("option[selected]").val() );
    });
Posted by: Guest on July-30-2020

Code answers related to "how to reset select2 option in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language