Skip to content Skip to sidebar Skip to footer

Generated Form Not Liking Javascript Change Field Value Function

I was previously helped to get a javscript function using jquery working - see : JS Fiddle working example Upon implmenting that same code into the generated form page i am not su

Solution 1:

try putting your code in $(document).ready(function(){}) eg

$(document).ready(function(){
$("[name='COLUMN35']").on('change', function(){
    var val = $(this).val();
    var reverseVal = (val == 'Yes' ? 'No' : 'Yes')
    $("input[value='"+reverseVal+"']:not([name='COLUMN35'])").prop('checked', true);
});
});

Post a Comment for "Generated Form Not Liking Javascript Change Field Value Function"