I am using a datalist and need to detect when the user selects something from the drop-down list. A similar question has been asked BUT I need it so that the event fires ONLY wh
More Optimize
$("input").on('input', function () { if($('datalist').find('option[value="'+this.value+'"]')){ //your code as per need alert(this.value); } });