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
function initPlaceholder() { | |
if (!("placeholder" in document.createElement("input"))) { // Browser 지원여부 체크 | |
var $input_placeholder = $("input[placeholder]"); | |
$input_placeholder.each(function () { | |
$(this).focus(function () { | |
if ($(this).val().trim() == "") { | |
$(this).css("color", "").val(""); | |
} | |
}).blur(function () { | |
if ($(this).val().trim() == "") { |