Home › Forums › Quform WordPress › Select a Dropdown value
Hey Guys,
Is there a way to select a value on a dropdown based on the value of another dropdown? I could’n figure out how to do it.
You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
Unfortunately that didn’t work. The second dropdown doesn’t change.
Here’s what changes I’ve made:
<script> jQuery(document).ready(function ($) { $('.iphorm_2_13').change(function () { var value = $(this).val(); $otherDropdown = $('.iphorm_2_44');
if (value == 'Auxiliar de Cozinha') { $otherDropdown.val('Sap_Q2'); } else if (value == 'Auxiliar de Manutenção') { $otherDropdown.val('Sap_Q2'); } }).change(); }); </script>
Now it’s working perfectly. Thanks.