$(document).ready(function() {
    $('[autofocus]').placeholder();
});

(function($) {
    $.fn.autofocus = function() {
        if(!this[0].autofocus) {
            this.focus();
        }
        return this;
    }
})(jQuery);

