/ Published in: jQuery

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** * Used to log to the console. * Call it by writing $.log('your message here') */ jQuery.fn.log = function (msg) { try { if (console) console.log("%s: %o", msg, this); } catch(e) {} return this; }
Comments
