Sign in
Log inSign up

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!

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct