hi Hylsan,
Try with this code, i think this will help you.
read the database field from the database separated by comma(,)
and write inside combo value, here i have put 1field1,1field2
hope you will get right answer from this.
<script language="javascript">
<!--//
function loadpick()
{
if(document.getElementById("cmbname").selectedInde x==0){
document.getElementById("cmbname").selectedIndex=1
}
var where_is_mytool=document.getElementById("cmbname") .value;
var mytool_array=where_is_mytool.split(",");
document.form1.txtname.value=mytool_array[0]
document.form1.txtsetup.value=mytool_array[1]
}
//-->
</script>
<form name="form1" method="post">
<select name="cmbname" id="cmbname" onchange="javascript
:loadpick()">
<option value=>select</option>
<option value="1field1,1field2">config 1</option>
<option value="2field1,2field2">config 2</option>
<option value="3field1,3field2">config 3</option>
</select>
Name: <input name="txtname" type="text" size="25" value="XXXXX">
Setup: <input name="txtsetup" type="text" size="25" value="YYYYY">
</form>
surendran
(Anything is Possible)
http://ssuren.spaces.msn.com