Skip to main content
November 9, 2006
Question

cfselect and onClick

  • November 9, 2006
  • 3 replies
  • 353 views
I have a cfselect statement whit the following options. "Select" "Men" "Women" "Boys" "Girls" "Infants".

it is defaulted to "Select" but the user must select one of the other options to continue.

What I want is to be able to include an onClick in the select statment to display the rest of the page. because depending on which option you take, the rest of the page will be different.

Ex if the user selects "Men" - there are 4 more questions regarding men, if "Women" is selected, 7 questions regarding women
so on and so forth....

I know i can do it by forwarding the user to another page but I would like to embed it all in the same page...

Thanks in advance

Craig
This topic has been closed for replies.

3 replies

Inspiring
November 9, 2006
For what you want to achieve, it's going to be tough. You might be able to figure something out with inner html.

I had a similar problem once and solved it with two forms. In my case checking or unchecking a checkbox would determine what form was visible.
November 9, 2006
Its html (cf) page, no flash nowhere insight...

I know I have to use JS but was wondering if anyone had any samples, I searched google but cant find exactly what I need
Inspiring
November 9, 2006
If you have an html form, use javascript. If flash, use actionscript.