The aim is to access a particular endpoint after performing a search only when I hit a button but I am finding it difficult to do that with JS. I have an HTML which is rende