Thanks Shankar,
the only concern for me is there is no id/name that I can identify. I tried another
jsp using regular <SELECT>. Since it is struts tag <html:select> which doesnt have a name/id to give. See my sample code for <SELECT> which works fine. how do you use the same if i have <html:select> tag with label and value (see my code in my first posting)
<HTML>
<HEAD>
<script language="javascript" type="text/javascript" >
<!-- hide
function selectPartner(x){
if (document.form1.Person.value != "null") {
alert(x);
document.form1.Native.options[x].selected =true
}
}
// end hide -->
</script>
</HEAD>
<body>
<form name="form1">
<select name="Person" onChange="selectPartner(document.form1.Person.options[document.form1.Person.options.selectedIndex].value)">
<option>Choose..</option>
<option value=1>Vegitable</option>
<option value=2>Fruits</option>
</select>
<select name="Native">
<option>Native is..</option>
<option value=0>Okra</option>
<option value=1>Apple</option>
</select>
</form>
</body>
</HTML>