Hi, I can use the follwoing javascript code to dynamically fill a dependent list (students is aa array of arrays).
<SELECT NAME="department" onChange="populateDependent(this.form.student, ((this.selectedIndex == -1) ? null : students[this.selectedIndex-1]));"> <OPTION VALUE="-1">Select Team <OPTION VALUE=1>Montreal Canadiens <OPTION VALUE=2>Pittsburg Penguins <OPTION VALUE=3>Toronto Maple Leafs <OPTION VALUE=4>Ottawa Senators </SELECT> <BR> <SELECT NAME="student" SIZE="1"> <OPTION> </OPTION> But when I try to convert this into Struts code, it just does not work! Its driving me crazy. <html:select property="department" onchange="populateDependent(this.form.student, ((this.selectedIndex == -1) ? null : students[this.selectedIndex-1]));> <html:option value="-1">select department</html:option> <html:options collection="departments" property="id"labelProperty="description"/> </html:select> </td> ------------------ <html:select property="student" size="1"> <html:option value="-1"> select student</html:option> </html:select> Could you guys tell me what is wrong with my struts code? Thank you in advance! regards, rick __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]