Checkbox show and hide multiple fields

Checkbox show and hide multiple fields

Hello I am trying to get my form to show multiple fields.  When I select one checkbox it works fine but when I select a second no fields show.  I have tried using different IF statements and am now using ELSE but it still does not work when selecting multiple options.  Here is the code I have.

Form Onload  sets my fields to hidden

on the field that is selected this is the code:


if ( (input.Industry_Vertical.toString()  ==  "Agriculture and Mining") )
{
show Agriculture_and_Mining_Specific ;
}

else
{
hide Agriculture_and_Mining_Specific ;
}

if ( (input.Industry_Vertical.toString()  ==  "Business Services") )
{
show Business_Services ;
}

else
{
hide Business_Services ;
}

Any help would be great!