This file contains hidden or 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
/* | |
* Short jQuery method of making placeholders for all the browsers. | |
* | |
* Use the following HTML markup to make this work: | |
* <input type="text" class="placeholder" value="Your name" data-standard="Your name" /> | |
*/ | |
$(".placeholder").focus(function () { | |
if ($(this).val() == $(this).attr("data-standard")) { | |
$(this).val("").addClass("active"); //Add class for other styling |
NewerOlder