placehoder 클릭 문자 사라짐

4705 단어
/span>HTML>
<html>
<header>
    <meta charset='utf-8'/>
    <title>demotitle>
    <script src='js/jquery-1.11.3.js'>script>
header>
<body>
<input type="text" placeholder=" 1" class="txt_search1" value=""/>
<input type="text" placeholder=" 2" class="txt_search2" value=""/>
<input type="text" placeholder=" 3" class="txt_search3" value=""/>
<script>
    $(function(){
        $("input").bind('mousedown',function(){
            $(this).attr('placeholder','');
        })
        $("input").bind('blur',function(){
            $(this).attr('placeholder',' ')
        })
    })
script>
body>
html>

좋은 웹페이지 즐겨찾기