brand
second item
brand
IBM
that item
will
select IBM
too brand
HP
that item
will
select HP
tooHow to do that in javascript.
<select name="brand">
<option>Please Select</option>
<option>IBM</option>
<option>HP</option>
</select>
<select name="item">
<option>Please Select</option>
<option>IBM</option>
<option>HP</option>
</select>
<select name="brand" id="brand" onchange="document.getElementById('item').value = document.getElementById('brand').value">
<option>Please Select</option>
<option>IBM</option>
<option>HP</option>
</select>
<select name="item" id="item">
<option>Please Select</option>
<option>IBM</option>
<option>HP</option>
</select>