/ Published in: JavaScript
URL: http://ajaxian.com/archives/jquery-logging
Expand |
Embed | Plain Text
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.

Simple. Easy. Perfect!
use example:
$(root).find('li.source> input:checkbox').log("sources to uncheck").removeAttr("checked");