How to reset a dropdown list back to the default value after a selection is made?
Hello all,
I am currently working with a simple coldfusion page that presents the user with a dropdown list. When a user selects one of the values a new page opens up and allows them to upload a photo to a specific directory based on their dropdown selection. This is working just fine but I've been asked to have the dropdown list reset back to the default value when the new page pops up. Is there a way to do this?
See below the code for the dropdown list:
<cfform name="directorySelection" method="post" action="photo.cfm?userID=#userID#" target="_blank" onchange="form.submit()">
<cfselect name="directName" onChange="form.submit()">
<option value="" selected="true" disblaed>-- Select One --</option>
<option value="nature">Nature</option>
<option value="city">City</option>
<option value="portrait">Portrait</option>
</cfselect>
</cfform>
Thank you.
