What’s the easiest way to add an option to a dropdown using jQuery?

Will this work?

$("#mySelect").append('<option value=1>My option</option>');

3Best Answer
31

Leave a Reply

Your email address will not be published. Required fields are marked *