i use jquery ajax to get data from php file.
data = <option>Peter</option><option>Maria</option>
i want to then use jquery to put this data after the first option
<select>
<option>Name</option>
</select>
i cant use html() on select because then the first option will be deleted. what jquery function can i use to put them after the first one?
EDIT: i cannot use append because then when i make another request and the data is:
data = <option>Michael</option><option>Erik</option>
Peter and Maria will still be in the Select list. how can i do? I have tried to have a
<div id=addhere></div>
after the first option and then use html() but it doesnt work. Weird. how can i solve this?