vitch/jQuery-datepicker — pull request #1 by tetsuo13 (2012-06-22 00:56:23+00:00)
Title: Remove assumption that element focus always works

From http://code.google.com/p/jquery-datepicker/issues/detail?id=339

When attempting to use the "dateSelected" hook to set an INPUT of type "hidden" to the value selected from the calendar, IE 8 produces a JavaScript error.

Example code:

```html

```

IE 8 produces this JavaScript error: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus. This is a benign error as the INPUT still contains the selected date. Issue is that no further JavaScript will execute on the page.