Answers for "clearing select option jquery"

3

remove all options from select jquery

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

reset a select option jquery

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language