Opened 15 years ago
Closed 13 years ago
#3098 closed enhancement (invalid)
[autocomplete] Change class of input element depending on whether text matches results
Reported by: | shebditch | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.3 |
Component: | plugin | Version: | 1.2.6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
This is a hopefully straightforward patch that adds an additional class to the autocomplete input element depending on whether or not the text present exactly matches a result sent back from the server.
There is a new configuration option, completedClass that sets the class name, defaulting to ac_completed.
Caveats: a) this has only been tested against AJAX. b) it removes the functionality to hide the suggestions when DEL is pressed, though perhaps whether it does that should be a configuration option anyway.
Attachments (1)
Change History (2)
Changed 15 years ago by
Attachment: | jquery.autocomplete.completed-class.patch added |
---|
comment:1 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
This is not a jQuery core bug. Please report plugin bugs to the plugin's author, or ask on the jQuery forums. jQuery UI bugs should be reported on the UI bug tracker, http://dev.jqueryui.com .