Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select boxes

Status
Not open for further replies.

rr236

IS-IT--Management
Oct 23, 2000
37
GB
Is it possible to populate 2 select boxes based on a radio button being clicked...

If so (I know I'm sounding desparate) HOW...

thanks in advance
 
-> the code to populate a list box is in the faqs for this forum
-> to populate 2 selectboxes is just like populating 1 - just use a function to make code more readable
-> to call the function, the event is "onclick"

<input type=button value=&quot;click me to populate 2 lb&quot; onclick=&quot;my_populate_func()&quot;>

function my_populate_func() {
// call the add for the 1st list box
// call the add for the 2nd list box
}

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top