There are some good one here: http://javascript.internet.com/forms/
Make sure what you pick is compatible with most browsers. -- James Mitchell Software Developer/Struts Evangelist http://struts.sourceforge.net/struts-atlanta/ > -----Original Message----- > From: Clauson, Kelly [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 11, 2003 1:46 PM > To: [EMAIL PROTECTED] > Subject: generating select options from a previous select > > > Hello, > > I have a form with two select tags. I want the options for > the second to be > dependent on the option chosen for the first. What is the best way to > accomplish this? If java script is the answer, how do I > obtain the value of > the option chosen in the first select (I'm new to web apps)? > > What I've tried to do is create the options for the second > select in the > form bean given the value of the first, but of course, the > set method for > the property associated with the first select is not called > until the form > is submitted. > > <html:form action="/Go" name="GoForm" type="my.GoForm"> > > <bean:message key="app.select.category"/> > <html:select property="category"> > <html:options name="GoForm" property="categoryCollection"/> > </html:select> > > <bean:message key="app.select.subcategory"/> > <html:select property="subcategory"> > <html:options name="GoForm" property="subcategoryCollection"/> > </html:select> > > ... > </html:form> > > Thanks for helping, > Kelly > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]