javascript – My send button doesn’t send data to my chatbox? It doesn’t work

I have a chatbox. The user is supposed to be able to type a response and send that response to the chatbot. For whatever reason, when I click the send button in my dev server, the button doesn’t work. Any idea why? Is it because it isn’t in a production server?

JS:

$("#nameInput").keypress(function(e) {
  if (e.which == 13) {
    getBotResponse();
  }
);

$("#buttonInput").click(function() {
  getResponse();
});