Populate a Dropdown list dynamically based on a radio group selection
Posted on 2003-03-31
What I want to do is have a couple of radio buttons that populate a drop down list with values from a query when one of them is checked eg. if radio button 1 is checked populate with query 1 and if radio button 2 is checked populate with query 2.
<input type="radio" name="AreaSelect" value="TLA">
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">TLA</font></label>
<input type="radio" name="AreaSelect" value="NHU">
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">NHU</font></label>
The queries I want to use to populate the drop down are qGetTLAList and qGetNHULIst. How do I then use them to populate the list?
Any adavice that can be given will be greatly apprieciated.
Thanks in advance, Dan