I am using Acuity Scheduling for a project. It uses prototype.js and allows me to add my own custom code to the head and footer of the page (served to my site via iframe). I'm not familiar with prototype.js, so I'm trying to run jQuery in a way that it won't conflict. So far I haven't even been able to get an alert()
to successfully work. What can I do to be able to use jQuery on this page?
You can see the content of my iframe here: https://acuityscheduling.com/schedule.php?owner=11134756
If you view the source, you'll see the code I added at the bottom:
<script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
<script language="javascript">
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery('.time-selection').click(function() {
jQuery('#rest').append('<p class="continueAlert">Please enter your name and contact info below.</p>');
});
});
</script>
I read all of the jQuery Documentation on using jQuery with other libraries and tried the examples I thought might work. With the code above, I've also tried it without jQuery.noConflict();
, because with the code above I'm not using $
, but rather using jQuery
.
Thank you for any insight you can offer on this!