I realized you may be in this category. Make sure you read the http://meta.programmers.stackexchange.com/questions/6166/open-letter-to-students-with-homework-problems?cb=1Open letter to students with homework problems before making further posts. I tried to follow the rules in there for answering this, because i'm already starting to have flashbacks to CSC101.
---Original Answer---
There's a few steps you'll need to take to do this.
Hook onto the event that the button generates.
< button onclick="myFunction()" > Click me < /button >In a function called myFunction() (within a code tag) you'll need to provide the javascript/jquery to act on the event. In this case, this is where you'll get the contents of the textbox and then provide the logic for performing the request to Ebay's API:
< code> function myFunction(){ //Provide what you want to do in response to the button click here. } < /code>Complete the request and show output. Once the request is done, you'll need to use some jQuery/javascript to modify the page to show results. Most commonly, you'll have a paragraph tag or something with an id that you want to get at to modify it.