Change a textfield Ajax event.

Hi

I’ve got a search form that is supposed to filter the results as you type, but at the moment it seems to react to the onchange event. Is there a way that I can configure the textfield to trigger an Ajax request every time I type?

Thanks

instead of onchange event use the onkeyup or onkeypress…

At the moment I have no control over that, I’m using the built in Yii Ajax functionality. It translates into some jQuery code. I would like to configure it to react on a key press.