Published in: JavaScript
URL: http://ajaxian.com/archives/jquery-logging
jQuery.fn.log = function (msg) { console.log("%s: %o", msg, this); return this; };
Comments
Subscribe to comments
You need to login to post a comment.
Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.
mdi on 06/25/08
javascript textmate jquery log firebug
4 people have marked this snippet as a favorite
Published in: JavaScript
URL: http://ajaxian.com/archives/jquery-logging
jQuery.fn.log = function (msg) { console.log("%s: %o", msg, this); return this; };
Subscribe to comments
You need to login to post a comment.
Simple. Easy. Perfect!
use example:
$(root).find('li.source> input:checkbox').log("sources to uncheck").removeAttr("checked");