I\'m trying to create a generic autocomplete script using jQueryUI. The autocomplete should work for every:
To access that input element you should be able to do the following:
$(this.element).val();
Of course, that just gets the value. You can access the other attributes like so:
$(this.element).attr('value'); // just another way to get the value
$(this.element).attr('id');
Also, suppose you want to access that element in the select event, you can do that like so:
$(event.target).attr('value');
$(event.target).attr('id');