I am looking to set the default value of a drop down field (Service Type in my case) to "ENG" based on the selection of the previous drop down field (Active or Contingency in my case).
I have gotten this to work for the first field set in the collection, but cannot get it to work for any others thereafter. Here is my code that works for the first set:
$(document).ready(function(){ $('#q90 select').on('change',function(){ if($('#q90 select').val() == "Contingency") { $('#q101 select').val("ENG").change(); } else {$('#q101 select').val('').change(); }; }); })
Does anyone have any ideas?