I have database that have users ID,name,shopCode.
what I am looking for is when the user select the supervisor, also will get shopCode value for selected supervisor. Is there way to have 2 name and 2 value attribute in select tag ?
<select name="supervisor_ID shopCode_ID" id="supervisor_ID shopCode_ID">
<% for (const i in supervisor) { %>
<option value="<%= supervisor[i].id supervisor[i].shopCode%>"> <%= supervisor[i].name %> </option>
<% } %>
</select>