获得焦点时改变输入框样式

代码:

$(function(){

    $("input").focus(function(){

        $(this).css('border-color','#39a6ec');

    }).blur(function(){

        $(this).css('border-color','#ddd');

    });

});

 

文章来源:刘俊涛的博客

地址:http://www.cnblogs.com/lovebing

欢迎关注,有问题一起学习欢迎留言、评论。

原文地址:https://www.cnblogs.com/lovebing/p/7988616.html