Reputation: 14468
Why does this below jQuery binding of an eventhandler to the focus
event have the side-effect that the user needs to click twice on the select-option do make it drop down/up.
$('input, select, textarea').focus(function() {
$(this).addClass('input_highlight');
}).blur(function() {
$(this).removeClass('input_highlight');
});
This is only an issue for IE (tested in IE8), Chrome and FF behaves as expected.
My testcase, including all relevant css, can be seen here: jsFiddle sandbox example
Upvotes: 2
Views: 1869