on change
Hi,
what is wrong with this code since the drop down box is not changing to display the correct value. It didn't highlighted the one i selected..
<cfoutput>
<cfif isDefined('form.code')>
<cfset page.code = form.code />
</cfif>
<form action="#cgi.SCRIPT_NAME#" method="post" name="mycode">
<select name="code" required="yes" onchange="this.form.submit()">
<option value=""><b>Select Customer</b></option>
<option value="AB" <cfif isDefined('form.code')><cfif form.code eq "AB">selected</cfif></cfif>>AB- None</option>
<option value="CD" <cfif isDefined('form.code')><cfif form.code eq "CD">selected</cfif></cfif>>CD- Deliver</option>
</select>
</form>
<cfif isDefined('page.code')>
#code#
</cfif>
</cfoutput>
thanks