Created
November 9, 2015 19:26
-
-
Save karlazz/58f56caf774a8a5a51ed to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| add_action("gform_pre_render_13", "add_form13_js", 10); | |
| function add_form13_js($form) { | |
| $location = site_url("/thanks-for-your-donation"); | |
| echo ' | |
| <script type="text/javascript"> | |
| jQuery(document).bind("gform_post_render", function(){ | |
| jQuery(document).on("click", "#gform_submit_button_13", function(e) { | |
| if (document.getElementById("choice_13_18_1").checked) { | |
| //jQuery("#give-modal").hide(); | |
| } | |
| }); | |
| }); | |
| </script>'; | |
| return $form; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment