add new items in a select input using js

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

Also in JavaScript: