Hi, Thanks for your help, Sonny and Pawel. Specifying an id attribute did not work as that just hid the dropbox itself but still showed the label so that looked weird, but setting the theme to simple worked. So I had to write my own <tr> and <td>'s and draw the table but I set the theme for all the tags in the form to "simple" and used javascript to hide the entire row for the field.
Thanks again for your help! Rajeshwari On Tue, Feb 10, 2009 at 3:24 PM, Sonny Gill <sonny.pub...@gmail.com> wrote: > Whether or not the <tr> and <td> s are created depend on the theme see > are using for the form. > See http://struts.apache.org/2.0.14/docs/form.html > If you use the 'simple' theme, no extra html elements will be created. > See http://struts.apache.org/2.0.14/docs/themes-and-templates.html > > Setting the element's style.display to 'none' should work. If it is > not working, you need to debug the Javascript code that you are > adding, that is not due to Struts. > > Cheers, > Sonny > > > On Tue, Feb 10, 2009 at 1:20 PM, Rajeshwari Godbole <rgodb...@gmail.com> > wrote: > > Hello all, > > > > I'm using Struts2 on Tomcat and am trying to hide a s:select tag > depending > > on the selected option of another s:select tag. I'm able to disable the > tag > > using javascript but am not able to hide it. Setting > style.display="none"; > > does not work, neither does adding a div tag because Struts writes its > own > > <tr><td>'s and the div tag is placed somewhere else. Is there a way to do > > this? Could struts be told not to create <tr> and <td> fields? > > > > Any help is much appreciated. > > > > Thanks, > > > > Rajeshwari > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >