Good day. Faced such a problem. I have an input field with a datalist list. I need that when I click on an item from a datalist , an event happens. The same alert , at least. $().change works when the field is out of focus, but you need it to immediately when you click. Is it possible?
<input type="text" id="test_input" list="temp_list"> <datalist id="temp_list"> <option value="1"> first </option> <option value="2"> second </option> <option value="3"> third </option> </datalist>
click? - hindmost