Skip to content

Instantly share code, notes, and snippets.

jQuery(function ($) {
// detect support for input attribute
var input = document.createElement('input');
if (!('autofocus' in input)) {
$('[autofocus=]').focus(); // http://bugs.jquery.com/ticket/5637
}
});