Re: javascript and readonly in struts

2006-11-21 Thread Laurie Harper
Søren Blidorf wrote: Hi. I am trying to convert the following in to struts taglib I'm not really sure what that means. You want to convert a client-side Javascript behaviour to a server-side behaviour. What is the use case you're trying to achieve? function choose() { if (this.form.v1

Re: javascript and readonly in struts

2006-11-19 Thread Martin Gainty
semination, distribution or copying of it or its contents - Original Message - From: "Søren Blidorf" <[EMAIL PROTECTED]> To: Sent: Sunday, November 19, 2006 9:24 AM Subject: javascript and readonly in struts Hi. I am trying to convert the following in to struts taglib

javascript and readonly in struts

2006-11-19 Thread Søren Blidorf
Hi. I am trying to convert the following in to struts taglib function choose() { if (this.form.v1.selectedIndex==3) { this.form.v2.readOnly=true; this.form.v2.value=''; } } 1 2 3 How do I make this work: function choose() { if (this.form.v1.selectedIndex==3) { this.form.v2