I added item click event. You can use by setting onItemClick option. Also it has these parameters: val, txt, li
Example usage:
$('.flexdatalist').flexdatalist({
...
onItemClick: function (val, txt, li) {
console.log(val); // Value of item
console.log(txt); // Text of item
console.log(li); // Element of item
}
...
});
And I fixed unnecessary console logging even if debug is false.
(Note: I don't know how you compressed the file before. So, I didn't change the minified file.)
I added item click event. You can use by setting
onItemClick
option. Also it has these parameters:val
,txt
,li
Example usage:And I fixed unnecessary console logging even if
debug
isfalse
.(Note: I don't know how you compressed the file before. So, I didn't change the minified file.)