i have a search field where the user type in a search string and it searches.
right now it searches for every keyup. so if he types Windows it will make a search with ajax for every key he press. W, Wi, Win, Wind, Windo, Windows.
I want to have a delay instead, so it just search when he stops typing for 0.2s.
There is no option for this in the keyup function. and i have tried to have setTimeout without result. then it just delay for some secs and then it do a search for all the letters i typed in.
How can I do that?