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
/* JS fallback for HTML5 placeholder | |
* requires jQuery and Modernizr (to detect support) | |
* by Jon Raasch - @jonraasch - http://jonraasch.com/ | |
* modified script from Nico Hagenburger: http://bit.ly/LgrkT0 | |
*/ | |
if(!Modernizr.input.placeholder){ | |
$('[placeholder]').focus(function() { | |
var input = $(this); | |
if (input.val() == input.attr('placeholder')) { |