I’m trying to process some input in a text box upon the blur() event. What I cannot seem to accomplish is returning the cursor to the text box if the text is not correct. See:
This works fine in IE (focus/cursor returns to the text box), but not Firefox or Chrome, where the focus us not returned. What am I doing wrong here? I’ve tried both the jQuery focus() method and the element’s own focus() method.
Try: