I'm attempting to collect the user's input and execute a search using an API. At this point, I can use the API (ebay search) by typing keywords into the html document- but I want the user to be able to type the keywords for searching. I created a simple modal with a form containing text input and a submit button. I gave the input an id of ="searchobject," so I can retrieve the user input by id. What I can't figure out is how to use the Submit button to push the user input to where I would put the keywords. Then the page should show the results of the users input.
I realized you may be in this category. Make sure you read the Open 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.
There's a few steps you'll need to take to do this.
1) Hook onto the event that the button generates.
< button onclick="myFunction()" > Click me < /button >
//Provide what you want to do in response to the button click here.