Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jsp loop selectbox option + javascript onchange problem

843844May 24 2007 — edited May 25 2007
i got a problem with that selectbox onchange event to change the other selectbox option value, i'm looking for help here...




<form name="test">
<select name="a" onchange="this.form.nc.selectedIndex=this.selectedIndex"> 
    <option>select1</option> 
    <option>A</option> 
    <option>B</option> 
    <option>C</option> 
  </select> 


<select name="nc">
<%
	for (int i=0;i<v.size();i++) { 
	String claname = (String)v.elementAt( i ); 
%>
	<option value="<%=claname%>"><%=claname%>
<%
	}
%>
	</select>
<%
		
	}
</form>
if a user pick up a value A in selectbox a, the selectbox nc option will auto jump to the A too, how can i make it ...
thank you for help ... thx a lot
jump to
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 22 2007
Added on May 24 2007
1 comment
200 views