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

How to use javascript code for Multiple selection box in HTML

P: 1
Hello sir,
I have problem while using javascript with HTML multiple selection tag, I want to write javascript in such a way that if a I change the option by clicking on the radio button on html page, the values in the multiple selection box will be different... I mean i have to sets of lists, one for Buy and one for Sell.. I have taken two radio buttons Buy and Sell.. If I click on Buy one list should display inside multiple selection box, If i change it to Sell the list in that box also should change. so please help me for this problem. I am waiting......

Mar 6 '07 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
Welcome to The Scripts.

First of all, read this page which gives you an idea on how to construct options dynamically.

For the radio buttons, use the onclick event handler to decide which select options to display.
Mar 6 '07 #2

Post your reply

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