Sha256: 459a479af33df80609208616c1a3fc7d8414ea470f1e46bddee74018cd89f666
Contents?: true
Size: 624 Bytes
Versions: 55
Compression:
Stored size: 624 Bytes
Contents
$(document).ready(function() { $('[name="questionnaire[travel_not_from_school]"]').on('change', function() { var $location = $('[name="questionnaire[travel_location]"]'); if (this.value === "true") { $location.parent().show(); $location.prop('disabled', false); } else { $location.parent().hide(); $location.prop('disabled', true); } }); $('[name="questionnaire[acc_status]"]').on('change', function() { var $content = $('.hide-if-not-attending'); if ($(this).val() == 'rsvp_denied') { $content.hide(); } else { $content.show(); } }); });
Version data entries
55 entries across 55 versions & 1 rubygems