Posted By

mdi on 06/25/08


Tagged

javascript textmate jquery log firebug


Versions (?)

Who likes this?

13 people have marked this snippet as a favorite

koncept
korzhik
orion
HubertGaulin
mdrisser
classicalart
Flocke
masondixon
YA
electblake
omerta83
seanpowell
rentnil


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.