[jQuery] Re: Autocomplete row colors

2007-12-17 Thread Shawn
I like it. But you have one minor issue. it should be ac_even - not ac_event. :) Close though Is this going to be in the next stable release? Shawn Jörn Zaefferer wrote: > > Jörn Zaefferer schrieb: >> Your workaround is what I would have proposed. I'll look into a better >> solution,

[jQuery] Re: Autocomplete row colors

2007-12-17 Thread Jörn Zaefferer
Jörn Zaefferer schrieb: Your workaround is what I would have proposed. I'll look into a better solution, maybe just always adding the class - then its up to you to only set appropiate styles. The plugin now always adds "ac_odd" and "ac_even" classes to the select list items. Give it a try: h

[jQuery] Re: Autocomplete row colors

2007-12-17 Thread Jörn Zaefferer
Shawn schrieb: I was able to get the alternating row colors with this code: $("#dialogTSKComp").autocomplete( "xhr/autocomplete_company.cfm", { formatItem : function (data, pos, qty) { if (pos % 2 == 0) { return "" + data[0] + ""; } return data[0]; }

[jQuery] Re: Autocomplete row colors

2007-12-16 Thread Shawn
I was able to get the alternating row colors with this code: $("#dialogTSKComp").autocomplete( "xhr/autocomplete_company.cfm", { formatItem : function (data, pos, qty) { if (pos % 2 == 0) { return "" + data[0] + ""; } return data[0]; } } ); And then