Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using onChange with a Pulldown menu

Status
Not open for further replies.

DrumAt5280

Technical User
Sep 8, 2003
194
US
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top