JQuery Auto-Complete: How do I handle modifications?
问题 I have auto-complete working, but how do I handle modifications? What happens when the user modifies the original selection? I've got an auto-complete that, when a listing is chosen, other fields are filled in. If the user chooses a listing, then tries to modify it to something that is new (does not match anything in our DB), the other fields need to be cleared. Another way of asking: How do I handle 'new' listings? My code below $(function() { $( "#oName" ).autocomplete({ source: "include