Add Custom Javascript?
-
Hi there!
Plugin’s look and functions are simply boss.
However, the custom javascript I’m using for the radio button on a form within the modal is not being recognized. Works for the form on any given page, but not opened in the modal. Hence, the modal displays both options, not hiding one or the other, as according to the js.
Is there any way I can add this custom js to the plugin or some other work around you may know of?
Here’s a link to the site with the form on a page. The modal button is in the side bar, lower right.
http://www.newfoundjournal.org/donation-test/
Also, here’s the js I’m working with:
<script type="text/javascript">// <![CDATA[ (function($){ $(document).ready(function(){ $("#recurring").hide(); $(".option").click(function(){ if($(this).val()=='single'){ $('#recurring').hide('slow', function(){ $('#single').show('slow'); }); } else { $('#single').hide('slow', function(){ $('#recurring').show('slow'); }); } }); }); })(jQuery); // ]]></script>
Any insight would be appreciated!
Cheers,
Daniel
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add Custom Javascript?’ is closed to new replies.