I am trying to select the value of this selector, to edit the initial value and replace it with a new one assigned by a user. but I can not give the solution. Can you give me a suggestion please ??.
Thank you very much
<select name="principalIngredient" id="principalIngredient">
<% principalIngredient.forEach((ingredient) => { %>
<option type="text" value="<%= ingredient %>" class="form-control"><%= ingredient %></option>
<% }) %>
</select>