I want to clear the textbox having Jquery Autocomplete once the user has made the selection.
I tried to clear the field by :
select: function(event, ui) {
$(this).val('');
}
But this is not working.I am using jquery-1.6.4 and jquery-ui-1.8.16.
Any Ideas?
select
is the name of the option you pass toautocomplete
to hook the event when the user selects one of the auto-complete choices. – Patagium