I'm using the jquery-autocomplete plugin of Jörn Zaefferer and I can't understand the use of this line in the fillList() function:
$.data(li, "ac_data", data[i]);
Please help me. Thanks.
I'm using the jquery-autocomplete plugin of Jörn Zaefferer and I can't understand the use of this line in the fillList() function:
$.data(li, "ac_data", data[i]);
Please help me. Thanks.
each tag "li" which creates, assigns the data in "ac_data" with the value in data[i];
variable declaration data:
var listItems,
active = -1,
data,
term = "",
needsInit = true,
element,
list;
assigning value to variable data:
display: function(d, q) {
init();
data = d;
term = q;
fillList();
},