<style type="text/css">
.Box { display:none; }
.Box1 { display:none; }
</style>
<s:form action="Register" method="POST" enctype="multipart/form-data">
<s:select label="Occupation Type" id="Workselect" name="background.workType" headerKey="1" headerValue="--Please Select--" list="#{'S':'Pursuing Education','W':'Working Professional'}" />
<s:textfield class="Box" label="Organization Name" id="ON" name="background.orgName" />
<s:textfield class="Box1" id="IN" label="Institute Name" id="Iname" name="background.instName" />
</s:form>
?? the code supplied is not html, check elsewhere than your inline code for other styles defining
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
If a script is changing the s tags into other tags, the styles will not apply. The styles are applied at the time the page originally renders.
The s tags cause a failure to render anything inside them, because html does not have an s tag. They also throw the browser into quirks mode.
MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182