I have the below JS which is not working for some reason.. anyone can help out?? var rtotal = 0; var val256 = $(‘.quform-field-1_430_1:checked’).val(); switch(val256) { case 1: rtotal += 1; break; case 2: rtotal +=2; break; case 3: rtotal +=3; break; }
Its a select menu with numbers from 1-7 in options. can’t figure out why its always taking one value.