mchoudhury
Programmer
Hi guys,
I have three drop down list. Inside them i have three value each three has the same data inside.
I'm trying to write a JS function where if a user selects say value 1 fron drop down list one and again chooses value one from either drop down2 or drop down3 then an alert box should show up alerting that this value has already been chosen.
This is my code for the drop down list:
<div id="pnlinternalcountries" style="DISPLAY: none">
<select name="Country1" id="Country1" style="width:200px;">
<option value="0">Select a Country...</option>
<option value="1">Antigua</option>
<option value="2">Belgium</option>
<option value="3">China</option>
</select>
<p><select name="Country2" id="Country2" style="width:200px;">
<option value="0">Select a Country...</option>
<option value="1">Antigua</option>
<option value="2">Belgium</option>
<option value="3">China</option>
</select>
<p><select name="Country3" id="Country3" style="width:200px;">
<option value="0">Select a Country...</option>
<option value="1">Antigua</option>
<option value="2">Belgium</option>
<option value="3">China</option>
</select>
how can write a javascript function that will produce this outcome.
thanks
I have three drop down list. Inside them i have three value each three has the same data inside.
I'm trying to write a JS function where if a user selects say value 1 fron drop down list one and again chooses value one from either drop down2 or drop down3 then an alert box should show up alerting that this value has already been chosen.
This is my code for the drop down list:
<div id="pnlinternalcountries" style="DISPLAY: none">
<select name="Country1" id="Country1" style="width:200px;">
<option value="0">Select a Country...</option>
<option value="1">Antigua</option>
<option value="2">Belgium</option>
<option value="3">China</option>
</select>
<p><select name="Country2" id="Country2" style="width:200px;">
<option value="0">Select a Country...</option>
<option value="1">Antigua</option>
<option value="2">Belgium</option>
<option value="3">China</option>
</select>
<p><select name="Country3" id="Country3" style="width:200px;">
<option value="0">Select a Country...</option>
<option value="1">Antigua</option>
<option value="2">Belgium</option>
<option value="3">China</option>
</select>
how can write a javascript function that will produce this outcome.
thanks