Skip to content

Instantly share code, notes, and snippets.

View jaf0's full-sized avatar

Daniel Weigh jaf0

View GitHub Profile
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php
// good javascript
(function ($) {
'use strict';
$(function () {
$('[placeholder]')
.focus(function () {
var input = $(this);
if (input.val() === input.attr('placeholder')) {