I want to build a node app, but i can't see the results (live search)

I’m making a nodejs app, but i don’t know how to make a live search, I have a form with an input for search. I want to see the response while i’m writing. I tried with onchange event but it doesn’t works. Anyone have a better solution ? Thank’s