This plugin allows to conditionally display elements based on an input element value. It has inline-options feature which allows to do this very easily, something similar to angular JS’s ng-if feature.
Example
<select id="fruits"> <option value="apple">Apple</option> <option value="banana">Banana</option> <option value="mango">Mango</option> </select> <!-- Plugin options given inline --> <div class="banana-section" data-condr-input="#fruits" data-condr-value="banana" data-condr-action="simple?show:hide" data-condr-events="click"> Here are the Banana options .. </div> <script>$('.banana-section').conditioner();</script>
Links
Buy me coffee !
If you like this work and found this useful buy me a coffee ! your donation will motivate me to develop and support this work.