badwolfff
asked on
How do I achieve this in jQuery?
Could anyone please help me with this code?
In #operators02
if I select option "client" then span.associazioneappartene neza should become visible and span.nomeattivita should be hidden
if I select option "association" then span.associazioneappartene neza and span.ragionesociale should hide and span.nomeassociazione should be visible
if I select option "vendor" then span.associazioneappartene neza and span.nomeassociazione should hide and span.ragionesociale should be visible
I would like jQuery to achieve this.
thanks in advance
Categoria utente (User category)
<select class="operators" id="operators02">
<option value="client" selected>Persona (Client)</option>
<option value="association">Associazione convenzionata (Association)</option>
<option value="vendor">Partner fornitore (Vendor)</option>
</select>
<select class="operatoroptions" id="operatoroptionss02">
<option value="and">e (and)</option>
<option value="or">o (or)</option>
<option value="not">non (not)</option>
</select>
<br>
<br>
<span class="associazioneapparteneneza">
Nome associazione (Name of User's Association)
<select class="operators" id="operators03A">
<option value="contains">contiene (contains)</option>
<option value="doesnotcontain">non contiene (does not contain)</option>
<option value="equalto">uguale a (equal to)</option>
<option value="notequalto">non uguale a(not equal to)</option>
</select>
<input id="input_UserAssociationName"></input>
<select class="operatoroptions" id="operatoroptionss03A">
<option value="and">e (and)</option>
<option value="or">o (or)</option>
<option value="not">non (not)</option>
</select>
</span>
<span class="nomeattivita nomeassociazione">
Nome Associazione Convenzionata (Name of Association)
<select class="operators" id="operators03B">
<option value="contains">contiene (contains)</option>
<option value="doesnotcontain">non contiene (does not contain)</option>
<option value="equalto">uguale a (equal to)</option>
<option value="notequalto">non uguale a(not equal to)</option>
</select>
<input id="input_AssociationName"></input>
<select class="operatoroptions" id="operatoroptionss03B">
<option value="and">e (and)</option>
<option value="or">o (or)</option>
<option value="not">non (not)</option>
</select>
</span>
<span class="nomeattivita ragionesociale">
Ragione sociale (Business name)
<select class="operators" id="operators03C">
<option value="contains">contiene (contains)</option>
<option value="doesnotcontain">non contiene (does not contain)</option>
<option value="equalto">uguale a (equal to)</option>
<option value="notequalto">non uguale a(not equal to)</option>
</select>
<input id="input_BusinessName"></input>
<select class="operatoroptions" id="operatoroptionss03C">
<option value="and">e (and)</option>
<option value="or">o (or)</option>
<option value="not">non (not)</option>
</select>
</span>
In #operators02
if I select option "client" then span.associazioneappartene
if I select option "association" then span.associazioneappartene
if I select option "vendor" then span.associazioneappartene
I would like jQuery to achieve this.
thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.