Try this:
add_action("wp_footer","custom_footer_script");
function custom_footer_script(){
?>
<script>
//your script here
</script>
<?php
}
This will add script to footer
Try this:
add_action("wp_footer","custom_footer_script");
function custom_footer_script(){
?>
<script>
//your script here
</script>
<?php
}
This will add script to footer