changing combo selection, showing related control?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
soclose
Forum Newbie
Posts: 19
Joined: Tue Nov 10, 2009 12:43 am

changing combo selection, showing related control?

Post by soclose »

Hi All,

I'd like to create a html combo box

For example

List of this combo box
1)Most Likely
2)Won Date
3)Lost

when user chooses 'Most Likely', another combo box will be automatically appeared.

when user chooses 'Won Date', another Date Picker will be automatically appeared.

when user chooses 'Lost', another Text box will be automatically appeared to type comments.

How to code?
User avatar
manohoo
Forum Contributor
Posts: 201
Joined: Wed Dec 23, 2009 12:28 pm

Re: changing combo selection, showing related control?

Post by manohoo »

Use javascript
soclose
Forum Newbie
Posts: 19
Joined: Tue Nov 10, 2009 12:43 am

Re: changing combo selection, showing related control?

Post by soclose »

Please give me a sample code because I'm a beginner in JScript.
User avatar
flying_circus
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR

Re: changing combo selection, showing related control?

Post by flying_circus »

soclose wrote:Please give me a sample code because I'm a beginner in JScript.
And your adventure starts by googling the "onchange" event.
Post Reply