0

IE8 seems to be the bane of my existence lately. I am trying to set focus when a new step is created in my application. Here is my code:

$(this).stepField('action_description').focus();

This works in all other browsers I've tested with (Firefox, Chrome, Safari). It even works in IE9, but not IE8. Any help would be vastly appreciated. Thanks.

Jason Bodak
  • 123
  • 1
  • 2
  • 10

1 Answers1

1

To work in ie8 :

    setTimeout(function() {
        $('#myElement').focus();
    }, 10);

SO source: jQuery focus() sometimes not working in IE8

Issue documented by MS : http://support.microsoft.com/kb/979954

Community
  • 1
  • 1
nicholmikey
  • 348
  • 2
  • 16