By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,118 Members | 1,134 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,118 IT Pros & Developers. It's quick & easy.

Coldfusion/javascript Show/hide

P: 2
I am stumped on a function to show/hide drop down elements based on a user's selection. If a user selects a second item from the first dropdown list, then I want to show a related dropdown with two options. If a user selects the second option from the second dropdown, then I want to show a data field. Somehow this is not working quite right. I am using Coldfusion to dynamically populate the dropdown. Any help will be appreciated.
Oct 12 '07 #1
Share this Question
Share on Google+
4 Replies


acoder
Expert Mod 15k+
P: 16,027
Show what code you have so far.

You will need Ajax on the client-side to call the Coldfusion script to populate the dropdown. The second part will probably be solved by JavaScript alone.
Oct 13 '07 #2

P: 5
you can either use Javascript itself to do stuff like:
document.getElementById('id').show();
document.getElementById('id').hide();

or if you are talking about chained select you need to implement it by Ajax.
However, if you're using CF8, it has built in dynamic select support for <cfselect> tag.
Dec 18 '07 #3

P: 4
I am stumped on a function to show/hide drop down elements based on a user's selection. If a user selects a second item from the first dropdown list, then I want to show a related dropdown with two options. If a user selects the second option from the second dropdown, then I want to show a data field. Somehow this is not working quite right. I am using Coldfusion to dynamically populate the dropdown. Any help will be appreciated.
Hi,

You can use DIV function.

Cheers,
Moorthy
Jan 10 '08 #4

acoder
Expert Mod 15k+
P: 16,027
Hi,

You can use DIV function.

Cheers,
Moorthy
A DIV element is not a function. Is that what you meant?
Jan 10 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.