I am trying to do, that when clicking on a combobox, the list should open, but instead a alert should pop up.
I have this code:
$('select').focus(function() {
this.blur();
window.focus();
});
$('select').click(function(){
alert('Clicked but did not open');
});
This works fine in FF, but doesnt work in chrome,
Any idea why?
Thank you in advance…
Demo
Adding return false works