输入框的文字显示效果

$(function(){
    $("input[name='search']").focus(function(){
        $(this).val("");
    })
    $("input[name='search']").blur(function(){
        $(this).val("请输入搜索文字");
    })
})

posted @ 2016-05-23 14:52  rain92  阅读(114)  评论(0编辑  收藏  举报