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,
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
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];
}
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
4 matches
Mail list logo