We Recommend

Pro JavaScript Techniques 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.


Posted By

mdi on 06/25/08


Tagged

javascript textmate jquery log firebug


Versions (?)


Who likes this?

4 people have marked this snippet as a favorite

koncept
korzhik
orion
mdrisser


jquery firebug log


Published in: JavaScript 


URL: http://ajaxian.com/archives/jquery-logging

  1. jQuery.fn.log = function (msg) {
  2. console.log("%s: %o", msg, this);
  3. return this;
  4. };

Report this snippet 

Comments

RSS Icon Subscribe to comments
Posted By: koncept on June 26, 2008

Simple. Easy. Perfect!

Posted By: include on July 2, 2008

use example:

$(root).find('li.source> input:checkbox').log("sources to uncheck").removeAttr("checked");

You need to login to post a comment.