I’m new to using the flexdatalist javascript plugin.
What I am trying to do is to display the content of the datalist when a value is set by default on the input like viewing all options as soon as entering the page.
By typing characters in the input, the change event is correctly triggered but when i set a default value on the input, even if the datalist has options it doesn’t show anything.
This is the flexdalist initialization:
$('#search').flexdatalist({
"noResultsText": 'No result for "{keyword}"'
});
Is there a way to show the datalist using javascript or jquery?