Hi, This is a code of Dynamic Drop Down Option.
If I select Item Code It Shows Item Name and vice versa.
I need to fill option from MySQL Database. Can anybody help me out. please .
<html>
<head>
<title>Gender Drop Down Test</title>
<script type="text/javascript">
function selectItem(value, id){document.getElementById(id).value=value;}
</script>
</head>
<body>
I'm a
<select name='item' id='ItemCode' onChange="selectItem(this.value, 'ItemName');">
<option value='0'></option>
</select>.<br />
<p>
<select name='item' id='ItemName' onChange="selectItem(this.value, 'ItemCode')">
<option value='0'></option>
</select>
</p>
</body>
</html>
Thanks
Ayesha