function selectAppend(jquerySearch, myvalue, pretty) { $(jquerySearch).append($('<option>', { value : myvalue }).text(pretty)); }Example use:
selectAppend('#myselect', '1.00', 'One Dollar');
function selectAppend(jquerySearch, myvalue, pretty) { $(jquerySearch).append($('<option>', { value : myvalue }).text(pretty)); }Example use:
selectAppend('#myselect', '1.00', 'One Dollar');