Adding options to select tag using jquery

Adding options to select tag using jquery

by fido3993

HTML

<select id="select">
</select>

JavaScript

$("#select").append($("<option></option>").val(1).html("One"));
$("#select").append($("<option></option>").val(2).html("Two"));
$("#select").append($("<option></option>").val(3).html("Three"));