The problem is, when the form is submitted, it will be validated according to the validator. then error will occur since the user didn't intend to submit and he/she didn't fill other required fields. And in my "acion" program, I don't know how to tell whether it was submitted by "javascript" or by the "submit" button. Any idea about that? Thanks.
t t <[EMAIL PROTECTED]> wrote: Thank you for the hint. I will try. Erik Weber wrote:I don't know exactly how do it using JavaScript. However, I know there's a way to do it. But, you'd have to have all list data downloaded to the client's browser (could be undesirable depending on list size), so you may want to rethink that approach once you figure out how to do it. Obviously it can be done using ordinary programming on the server side (JavaScript can resubmit the page when the first select's value is changed, and you can change the collection to be displayed in the second select before you resend the HTML). Erik t t wrote: >Hi, all, >I have two html:select as below: >--------------------------------------------------- > > > labelProperty="label"/> > > > > labelProperty="label"/> > >-------------------------------------------------------- >when user choose item2 from s1, I want to change the collection in s2 >from "c2" to "itemC". How can I do that? >Thanks in advance! >Tong > > > >--------------------------------- >Do you Yahoo!? > Check out the new Yahoo! Front Page. www.yahoo.com > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com