Reloading JS
-
I’m attempting to reload js files after the ajax and i’ve tried to follow the tutorial at http://www.youngtechleads.com/my-js-events-are-not-calling-after-loading-the-page-using-ajax/ but I just can’t seem to figure it out.
I’m using custom JS for my audio player button. It’s just placed within a custom code section in my theme. Here’s my JS I need to reload.
<script type = “text/javascript”>
jQuery(document).ready(function() {
jQuery(“.fap-single-track”).click(function() {
jQuery(this).toggleClass(‘playing’);
jQuery.fullwidthAudioPlayer.toggle();
});
});
</script>Is there any way I can edit this code to work with ajax or reload it afterwards?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Reloading JS’ is closed to new replies.