thank you so much, it worked.
I replaced “id=live-chat-button” with “class=live-chat-button” in <a href="javascript:void(0)" class='live-chat-button'>Live Chat</a>
. And then used .live-chat-button in JQuery in the footer.php instead of #live-chat-button.
Thank you!