Tuesday, 27 August 2013

hide element without setting the display to none in jquery

hide element without setting the display to none in jquery

I want to fold a section of the form without setting its display to none.
If i set the display to none, the validation is bypassed that is why I
don't want to set the display to none. I know I can set the visibility to
hidden and visible but this solution is not feasible for rendering the
view as the space for the folded section stays there. This results in a
very odd look of the view with an empty white space with no content on it.
So my question is to hide a section of the html form (without intacting a
placeholder for it) without setting its display to none, so that I could
still perform the validation.

No comments:

Post a Comment