Answers for "how to add first option selected in select using 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 "how to add first option selected in select using jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language