jQuery-Autocomplete
jQuery-Autocomplete copied to clipboard
how to clear current value when the el is blur
onBlur: function () { var that = this, options = that.options; /////////////////////////////////////////////////////////////////////// if (that.selection == null) { (options.onInvalidateSelection || $.noop).call(that.element); } //////////////////////////////////////////////////////////////////
// If user clicked on a suggestion, hide() will
// be canceled, otherwise close suggestions
that.blurTimeoutId = setTimeout(function () {
that.hide();
}, 200);
},
is there anyother way?