Created
November 25, 2019 06:49
-
-
Save be-mohand/ff66d2dd017d1463bfdbdbbdbd532b6d to your computer and use it in GitHub Desktop.
Update the TOS label depending on the selected user group in the signup form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on('change', 'form#signupForm #userTypeID', function(e) { | |
var elem = $(this); | |
if(elem.val() === "group_id_1") { | |
tos_label = 'TOS group 1'; | |
} else { | |
tos_label = 'TOS group 2'; | |
} | |
$('#tosLabelMessage').empty().text(tos_label); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment