Hi. I am trying to convert the following in to struts taglib
<script language="javascript"> function choose() { if (this.form.v1.selectedIndex==3) { this.form.v2.readOnly=true; this.form.v2.value=''; } } </script> <select name="v1" onchange="choose(selectedIndex)"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> <input type="text" name="v2"> How do I make this work: <script language="javascript"> function choose() { if (this.form.v1.selectedIndex==3) { this.form.v2.readOnly=true; this.form.v2.value=''; } } </script> <html:select property="v1" onchange="choose(selectedIndex)"> <html:option value="1">1</html:option> <html:option value="2">2</html:option> <html:option value="3">3</html:option> </html:select> <html:text property="v2"> Søren Blidorf Nolas Consulting Automatikvej 1 DK-2860 Søborg Telefon: +45 32713661 Direkte: +45 61676513 Webside: www.nolas.dk --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]