My FeedDiscussionsHashnode Enterprise
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

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?

Alex Harrison's photo
Alex Harrison
·Jan 27, 2018

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!