I’m looking to create some channel field select conditionals to hide two different weight variables. I’m looking to wrap a series of select tags with conditional content. If user selects bulk_option, I want to hide another. Would jQuery be best for something like this or, could I use if:else conditionals to display or hide other options.
Thanks!
{if bulk_option !=""}
<!-- Display None -->
{if:else}
<div class="control-group clearfix">
<label class="control-label">Weight</label>
<div class="controls">
<span class="store_product_weight"> {weight}<small>lb.</small> Bags*</span>
</div>
</div>
{/if}
{if bulk_option !=""}
<div class="control-group clearfix">
<label class="control-label">Bulk Weight</label>
<div class="controls">
<span class="store_product_weight"><select>
{exp:channel:entries channel="products" limit="1" dynamic="off"}
{bulk_product_select}
<option value="{item}">{item}</option>
{/bulk_product_select}
{/exp:channel:entries}
</select> <small>lb.</small> Box / Bulk Bag </span>
</div>
</div>
{/if}