Skip to content

Instantly share code, notes, and snippets.

View AlexCuse's full-sized avatar

Alex Ullrich AlexCuse

View GitHub Profile
@AlexCuse
AlexCuse / kernel.placeholder.js
Created July 10, 2012 17:37 — forked from aaronmccall/placeholder.js
shim for browsers that don't support the html5 placeholder attribute
(function () {
$.support.placeholder = false;
var test = document.createElement('input');
if ('placeholder' in test) {
$.support.placeholder = true;
return function () { }
} else {
return function () {
$(function () {
var active = document.activeElement;