struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey Hau <>
Subject using css style within s:form
Date Thu, 01 Feb 2007 17:53:33 GMT
In my s:form element, i would like to show a textinput box only if  
certain value is selected in the s:select element. Using the code  
below, although the s:textfiled is enclosed in a div with "display:  
none", the textfield it still displayed on the page.

<s:form action="doUpload" method="POST" enctype="multipart/form-data">
		<s:select id="accessInput" name="access" list="{'public',  
'private', 'group'}"/>
     	<div id="groupInput" style="display: none;">
     		<s:textfield name="group"></s:textfield>

(I have also tried replacing div with s:div and style to cssStyle)

I have tried moving the div out of the s:form element then it works  
fine. Is the s:form element overwriting the css style of the div tag?  
Anyone knows how to solve this problem?

many thanks


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message