随笔分类 -  JQuery

jquery判断对象是否获得焦点
摘要:1 var isFocus=$("#tRow").is(":focus");2 if(true==isFocus){3 alert("focus");4 }else{5 alert("blur");6 } 阅读全文

posted @ 2014-01-05 09:30 iackjee 阅读(514) 评论(0) 推荐(0)

JQuery绑定和注销事件
摘要:1 $('#action_list > li').each(function(){ $(this).unbind('click') .bind('click', function(){ 2 /** some code*/3 }); 4 }); 阅读全文

posted @ 2014-01-02 22:02 iackjee 阅读(482) 评论(0) 推荐(0)

导航