Skip to content

Instantly share code, notes, and snippets.

View samgro's full-sized avatar

Sam Grossberg samgro

  • Truckee, CA
View GitHub Profile
jQuery.placeholder = function() {
$('[placeholder]').focus(function() {
var input = $(this);
if (input.hasClass('placeholder')) {
input.val('');
input.removeClass('placeholder');
}
}).blur(function() {
var input = $(this);
if (input.val() === '') {