How can I bind an OnChange event of a TextBox to function using jQuery?
I am trying this, and it’s failing:
$(document).ready(function() {
$("input#tags").bind("change", autoFill);
});
function autoFill() {
$("#tags").autocomplete("/taglookup/", {
width: 320,
max: 4,
highlight: false,
multiple: true,
multipleSeparator:",",
scroll: true,
scrollHeight: 300,
delay: 10
});
}
NB: I want to implement a Tag TextBox like the one for Stack Overflow which detects OnChange events and calls Ajax functions when a user types in.