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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drop down menu problem !!!

Status
Not open for further replies.

paragvshah

Programmer
Jan 11, 2001
109
IN
Hi friends,

I have to make a drop menu in which on selection of a item in it should go to the page related to it by just clicking or selecting that item & no submit button. please any one can help it out.
 
HI paragvshah,

I'm not sure if you mean a <select... drop down menu or a DHTML drop down menu but I'm going with the Select.

This should do it

<CFFORM name=&quot;FormName&quot;
Action=&quot;addtime.cfm?#URLTOKEN#&quot;
Method=&quot;Post&quot;>

<Select name=&quot;Var1&quot;
onchange=&quot;FormName.submit()&quot;>
<CFOUTPUT Query=&quot;MyQuery&quot;>
<OPTION Value=&quot;#SendThisValue#&quot;>#ShowThisValue#
</CFOUTPUT>
</Select>
</CFFORM>

Hope this helps!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top