div中的input控件点击事件,修改其样式

$("#div_id input").click(function() {
    $("#div_idinput").each(function() {  
        $(this).removeClass("btn1_hover");  
    });  
    $(this).attr("class", "btn1 btn1_hover");  
}); 

posted @ 2018-06-08 11:01  晴天fly  阅读(2779)  评论(0编辑  收藏  举报