Opened 10 years ago
Closed 10 years ago
#8584 closed bug (notabug)
auto complete render item prolem if apply to multi element
Reported by: | deng.hui5 | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.autocomplete | Version: | 1.9.0-rc.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
the following sample code doesn't render as expected
$( "#A, #B, #C, #D" ).autocomplete({ minLength: 0, source: ..., focus: ..., select: ... }).data( "autocomplete" )._renderItem = function( ul, item ) { return $( "<li></li>" ) .data( "item.autocomplete", item ) .append( "<a>" + item.code + ": " + item.description + "</a>" ) .appendTo( ul ); };
Change History (2)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
That's because all getters, including .data()
, only work on a single element.
Note: See
TracTickets for help on using
tickets.
sorry, this way works
then display