Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-13-2004, 03:40 PM   PM User | #1
zorrox02
New to the CF scene

 
Join Date: Sep 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
zorrox02 is an unknown quantity at this point
To populate a dropdown list???

I have 2 dropdown list in my html. Is possible for me to populate the option values in the second dropdown list depend on what I select in the first one.
Thank you.

Zorro

<table>
<tr>
<td>
<form name="frmSelect" method="POST">
<select name="firstSelect" onChange="populateSecondSelect()">
<option selected>Select One</option>
<option>a</option>
<option>b</option>
</select>
</td>
<td>
<select name="secondSelect">
<option selected>Select One</option>
<option></option>
<option></option>
</select>
</form>
</td>
</tr>
</table>
zorrox02 is offline   Reply With Quote
Old 09-13-2004, 07:16 PM   PM User | #2
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
Sure just search the forum (or the web) for "javascript combobox". Here's one good link http://www.codingforums.com/showthre...cript+combobox

but there's literally thousands more.
__________________
Check out the Forum Search. It's the short path to getting great results from this forum.
Roy Sinclair is offline   Reply With Quote
Old 09-13-2004, 07:40 PM   PM User | #3
zorrox02
New to the CF scene

 
Join Date: Sep 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
zorrox02 is an unknown quantity at this point
Thanks Roy.

Thanks Roy. This does helps a lot.
zorrox02 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:06 PM.


Advertisement
Log in to turn off these ads.