I have form with select box in my user form. I also need to update the form in edit mode. I am able to get selected value in edit mode. But I am unable to set the selected value in the edit mode.
Here I am able to get the selected value from db. <%=user.getTitle() %>
Now how can I set the selected value in my select box.
<aui:select name="title">
<aui:option label="Dr" value="dr" />
<aui:option label="Mr" value="mr" />
<aui:option label="Mrs" value="mrs" />
<aui:option label="Ms" value="ms" />
</aui:select>
Example I aset the selected value for input field like this,
<aui:input name="emailAddress" value=""></aui:input>
Any suggestions please!!