I have an input. I need to sanitize the input’s string everytime the user changes the value. It works alright with this:
$('input#q').change(function(){
//sanitize string here...
});
The problem is when the user clicks on the browser’s autocomplete feature for that input. In that specific event, nothing happens. Is it possible to bind some kind of autocomplete to the #q input?
try the
pasteevent: