asked on
I am having two list boc as below
<SELECT NAME="sport_type" id="sport_type" onClick="xajax_processForm(this.options[this.selectedIndex].value,'3');return false;">
<option>-----Sports------</option>
<option value="/V2/index.php?sport_type=1">NFL</option>
<option value="/V2/index.php?sport_type=13">CFB</option>
<option value="/V2/index.php?sport_type=18">CFL</option>
<option value="/V2/index.php?sport_type=3">NBA</option>
<option value="/V2/index.php?sport_type=4">CBB</option>
<option value="/V2/index.php?sport_type=8">WNBA</option>
<option value="/V2/index.php?sport_type=5">MLB</option>
<option value="/V2/index.php?sport_type=7">NHL</option>
<option value="/V2/index.php?sport_type=all">All Sports</option>
</SELECT></td><td> </td>
<td><SELECT NAME="pick_type" id="pick_type" onClick="xajax_processForm('MLB',this.options[this.selectedIndex].value);return false;">
<option>-----Select------</option>
<option value="/V2/index.php?pick_type=3">3-Teamers</option>
<option value="/V2/index.php?pick_type=4">4-Teamers</option>
<option value="/V2/index.php?pick_type=5">5-Teamers</option>
<option value="/V2/index.php?pick_type=6">6-Teamers</option>
<option value="/V2/index.php?pick_type=7">7-Teamers</option>
<option value="/V2/index.php?pick_type=8">8-Teamers</option>
<option value="/V2/index.php?pick_type=9">9-Teamers</option>
<option value="/V2/index.php?pick_type=10">10-Teamers</option>
</SELECT>
ASKER
<SELECT NAME="sport_type" id="sport_type" onchange="xajax_processForm(this.value, document.getElementById('pick_type').value);return false;">
<option value="">-----Sports------</option>
<option value="/V2/index.php?sport_type=1">NFL</option>
<option value="/V2/index.php?sport_type=13">CFB</option>
<option value="/V2/index.php?sport_type=18">CFL</option>
<option value="/V2/index.php?sport_type=3">NBA</option>
<option value="/V2/index.php?sport_type=4">CBB</option>
<option value="/V2/index.php?sport_type=8">WNBA</option>
<option value="/V2/index.php?sport_type=5">MLB</option>
<option value="/V2/index.php?sport_type=7">NHL</option>
<option value="/V2/index.php?sport_type=all">All Sports</option>
</SELECT></td><td> </td>
<td><SELECT NAME="pick_type" id="pick_type" onchange="xajax_processForm(document.getElementById('sport_type').value, this.value);return false;">
<option value="">-----Select------</option>
<option value="/V2/index.php?pick_type=3">3-Teamers</option>
<option value="/V2/index.php?pick_type=4">4-Teamers</option>
<option value="/V2/index.php?pick_type=5">5-Teamers</option>
<option value="/V2/index.php?pick_type=6">6-Teamers</option>
<option value="/V2/index.php?pick_type=7">7-Teamers</option>
<option value="/V2/index.php?pick_type=8">8-Teamers</option>
<option value="/V2/index.php?pick_type=9">9-Teamers</option>
<option value="/V2/index.php?pick_type=10">10-Teamers</option>
</SELECT>
ASKER
<SELECT NAME="sport_type" id="sport_type"
onchange="xajax_processForm(this.options[this.selectedIndex].value,this.form.pick_type.options[this.form.pick_type.selectedIndex].value)">
<option value="">-----Sports------</option>
<option value="1">NFL</option>
<option value="13">CFB</option>
<option value="18">CFL</option>
<option value="3">NBA</option>
<option value="4">CBB</option>
<option value="8">WNBA</option>
<option value="5">MLB</option>
<option value="7">NHL</option>
<option value="all">All Sports</option>
</SELECT></td><td> </td>
<td><SELECT NAME="pick_type" id="pick_type"
onchange="xajax_processForm(this.form.sports_type.options[this.form.sports_type.selectedIndex].value,this.options[this.selectedIndex].value)">
<option value="">-----Select------</option>
<option value="3">3-Teamers</option>
<option value="4">4-Teamers</option>
<option value="5">5-Teamers</option>
<option value="6">6-Teamers</option>
<option value="7">7-Teamers</option>
<option value="8">8-Teamers</option>
<option value="9">9-Teamers</option>
<option value="10">10-Teamers</option>
</SELECT>
ASKER
JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.
TRUSTED BY
document.getElementById("s
document.getElementById("p