0

I've just added a subscription form from mailchimp to my page and my existing java functions have stopped working. Obviously there are two conflicting sources. Here's the original:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

and the mail chimp source:

<script type='text/javascript' src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script>

What can I do to have the two work in tandem?

Tim Lewis
  • 24,096
  • 13
  • 69
  • 92

1 Answers1

0
<script src="other_lib.js"></script>
<script src="jquery.js"></script>
<script>
$.noConflict();
// Code that uses other library's $ can follow here.
</script>

https://api.jquery.com/jquery.noconflict/

Melbourne2991
  • 11,225
  • 11
  • 41
  • 82