Bug Tracker

Opened 13 years ago

Closed 13 years ago

#5747 closed enhancement (invalid)

[autocomplete] Display results as TABLE instead of UL

Reported by: bearwalk Owned by:
Priority: trivial Milestone: 1.4
Component: plugin Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:


(This is my first contribution here, so I'm sorry if I'm submitting this the wrong way somehow.)

The attached file is the latest autocomplete plugin, but with an enhancement that makes it possible to display the results as table rows rather than list items. Very handy if you need to display additional data about each result.

Of course, to take advantage of this you must make formatItem() return strings with several TD:s, like "<td>foo</td><td>bar</td>".

Search for the string "resultsElements" to find all the lines I've modified.

Attachments (1)

jquery.autocomplete.js (21.2 KB) - added by bearwalk 13 years ago.

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by bearwalk

Attachment: jquery.autocomplete.js added

comment:1 Changed 13 years ago by dmethvin

Resolution: invalid
Status: newclosed

The autocomplete plugin isn't part of jQuery core, so it would be better to post this in the jQuery group:


Note: See TracTickets for help on using tickets.