Bug Tracker

Modify

Ticket #5747 (closed enhancement: invalid)

Opened 3 years ago

Last modified 3 years ago

[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:
Blocking: Blocked by:

Description

(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

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

Change History

Changed 3 years ago by bearwalk

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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

 http://groups.google.com/group/jquery-en

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.