Answers for "set dropdown to first option jquery"

1

select first option in dropdown jquery

myElement.find('option:eq(0)').prop('selected', true);
Posted by: Guest on October-08-2020
1

jquery change selected option to first

$('#agregador-de-servicios')[0].selectedIndex = 0;
Posted by: Guest on January-27-2021

Code answers related to "set dropdown to first option jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language