How do I cause a "post" request based on text field change? (without the use of a submit button) : I want to have an app where a user types into a text field. After the user is done, the form automatically "submits" a post request (there should be a delay of say, 2 seconds after the user stops typing).

I don't know how to do this--I imagine it requires some java-script or more machinery. I'm working in flask/Python. 

I've extensively searched through SO for these solutions but can't find somewhere to get started.

