javascript - Adding options to a select using jQuery?

Published: 22 June 2023
on channel: Code Samples
329
3

#short
#javascript
#jquery
#html-select
What's the easiest way to add an option to a dropdown using jQuery?
Will this work?
$("#mySelect").append('option value=1My option/option');


On this page of the site you can watch the video online javascript - Adding options to a select using jQuery? with a duration of hours minute second in good quality, which was uploaded by the user Code Samples 22 June 2023, share the link with friends and acquaintances, this video has already been watched 329 times on youtube and it was liked by 3 viewers. Enjoy your viewing!