I've been working on creating a chatbot widget for my website, but I've run into an issue. The "Chat with us" button only shows the bot and not the close button as well.
Here's what I've attempted:
<input id="chat" type="button" onclick="Show();" value="Chat with us" />
<script type="text/javascript">
function Show() {
document.getElementById("bot").style.display = "block";
document.getElementById("close").style.display = "block";
document.getElementById("chat").style.display = "none";
}
</script>
The goal is to display both the bot and the close button simultaneously.