Jump to content

How to remove a class based on a condition


newcoder1010

Recommended Posts

Hi,

 

I developed a form. I like to display a class only If I select Yes.

Otherwise, by default, class should not be displayed at all. Also, when I click no, class should not be displayed either.

 

If you please help. My page http://webuyhousesinnova.com/?q=coaching

Field name is Have you completed any deals in the last 3 years?. If you select Yes, you will see a fieldset displays. The fieldset is functioning correctly. I simply see an empty fieldset when it is either No or by default.

 

I tried to display none. In this case, it never displays.

 

fieldset .panel-body {    clear: both;    display: none;}

Thanks in advance.

post-168746-0-52812900-1475536031_thumb.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...