码迷,mamicode.com
首页 > 其他好文 > 详细

获取,失去焦点

时间:2015-12-05 15:42:58      阅读:108      评论:0      收藏:0      [点我收藏+]

标签:

$("#apply input").focus(function () {
    if ($(this).val() == "请补充内容") {
        $(this).val("");
    }
    $(this).css("color", "#000");
 }).blur(function () {
    if ($(this).val() == "") {
         $(this).val("请补充内容");
    }
    $(this).css("color", "#000");
 });
        

 

获取,失去焦点

标签:

原文地址:http://www.cnblogs.com/kk073000/p/5021544.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!