Skip to content

Instantly share code, notes, and snippets.

$('[placeholder]').focus(function() {
var input = $(this);
if (input.hasClass('placeholder')) {
input.val('')
.removeClass('placeholder')
.attr('autocomplete', 'on');
}
}).blur(function() {
var input = $(this);
if (input.val().length === 0) {