Last active
August 29, 2015 13:59
-
-
Save equijada001/10919002 to your computer and use it in GitHub Desktop.
Convio embedded survey - duplicates the email address of user into hidden CRI email field
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
<!-- Bringing in jQuery --> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> | |
<convio:session name="28" param="EMBED:14841"></convio:session> | |
<script> | |
$(document).ready(function() { | |
//$("input#cons_email").parents("tr.old-school").addClass("hide"); | |
$("input#cons_email").parents("tr.old-school").hide(); | |
$('input[name="3340_14841_3_12143"]').bind("keyup change", function (){ | |
var email_input = $(this).val(); | |
$("input#cons_email").val(email_input); | |
}); | |
//Center align survey table | |
$('tr.old-school td').attr('align','center'); | |
//Hide required 'star' | |
$('td.req').empty(); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment