Please help
I have a
<select id="select">
<option></option>
<option></option>
<option></option>
<select>
I used jquery to detect arrow up/arrow down for select and it worked
$(document).on('keyup', '#select', function () {
console.log('key-up');
});
But I clicked on select and a dropdown is opened, I used arrow up/arrow down to select in that drop-down but this function above not work! I changed it to:
$(document).on('keyup', '#select option', function () {
console.log('key-up');
});
But it not work? How can i detect event in this case