I thought this code should show the select element's dropdown list?
var event = document.createEvent('MouseEvents');
event.initMouseEvent('mousedown',
true, true, window, 1, 0, 0,
1, // clientx
1, // clienty
false, false, false, false, 0, null);
selectElement.dispatchEvent(event);
but it doesn't. What's wrong with my code?