Last active
August 29, 2015 14:04
-
-
Save danaskallman/69d015c9828d925f0b7d to your computer and use it in GitHub Desktop.
Sample JS for Event Custom Template v.01
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
{literal} | |
<script type="text/javascript"> | |
jQuery('#CIVICRM_QFID_58_2').change(function(){ | |
if (jQuery('#CIVICRM_QFID_58_2').attr('checked') == 'checked') { | |
jQuery('#CIVICRM_QFID_0_16').attr('checked', 'checked'); | |
jQuery('.Block_2-section').hide(); | |
} | |
}); | |
jQuery('#CIVICRM_QFID_59_4').change(function(){jQuery('.Block_2-section').show()}); | |
jQuery('#CIVICRM_QFID_60_6').change(function(){jQuery('.Block_2-section').show()}); | |
jQuery('#CIVICRM_QFID_0_8').change(function(){jQuery('.Block_2-section').show()}); | |
</script> | |
{/literal} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment