jQuery.hide() not working after form submit

baum22

New Member
I am trying to get a form working where I want to hide the optional fields if JS is enabled. So I have the following lines in there.\[code\] $(document).ready(function(){ $('#anfrageFormularOptionalContainer').hide(); });\[/code\]When I first get on the Page, everything works fine. The Optional Container is set to "display:none;". But when I now submit the form, the Optional Container is showen but its css is set to "display:none;". So why is it still shown? I realy have no idea why this strange thing occurs.
 
Back
Top