点击空白区域隐藏

时间:2014-10-28 17:40:19   收藏:0   阅读:161

$(window).click(function (e) {
var target = $(e.target);
if (target.closest("#btn_addNewNodes,#txt_addNewNodes").length == 0) {
$(‘#groupNameDIV‘).hide();
};
});

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!