Here is my code:
jQuery('#reporter').blur(function() {
if(data.indexOf('['+jQuery('#reporter').val()+']') >= 0)
{
alert("Please do not select pseudo user as Reporter");
jQuery('#reporter').focus();
}
});
In IE, the cursor is not blinking in the “reporter” element. In Chrome, it is.
Thanks a lot!
You’ll need to set the blur later by using a timeout. The other control might execute focus first.
Suggestion
This gives IE the time to focus the other control, steal the focus and then add it to
#reporter.Prevent action