Jquery: how can i set a variable from a user search box, then pass it to a chain of .then promises called by a button click?
Can anyone link me to an example? I want to get user input in a search bar, then on pressing the search button, set a variable and use that variable to call an api and pass along a series of promises. It seems so basic and yet I can't make it happen. Please help!