This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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')) { |