DrumAt5280
Technical User
The following Coldfusion code dynamically generates a list of suburbs in a pulldown menu.
I would like to use onChange="gotoURL();" so when a user selects a suburb from the menu it will take him to the correct page without a submit button. I know how to do this with plain HTML but not in Coldfusion.
CODE
<cfform id="forma" method="post" action="" name="forma">
<CFSELECT NAME="csFk"
QUERY="GetSuburb"
VALUE="suburbId"
DISPLAY="suburb" >
<OPTION value="0" selected>-- all location --</option>
</CFSELECT>
</CFFORM>
Any ideas? (I had posted this in the JavaScript forum but was asked to move it here)
I would like to use onChange="gotoURL();" so when a user selects a suburb from the menu it will take him to the correct page without a submit button. I know how to do this with plain HTML but not in Coldfusion.
CODE
<cfform id="forma" method="post" action="" name="forma">
<CFSELECT NAME="csFk"
QUERY="GetSuburb"
VALUE="suburbId"
DISPLAY="suburb" >
<OPTION value="0" selected>-- all location --</option>
</CFSELECT>
</CFFORM>
Any ideas? (I had posted this in the JavaScript forum but was asked to move it here)