Hello,
The following is my block of code. since I haven't installed Firebug in IE, Every time when I try to test my code in IE
I'm getting an error message console is undefined. so I decided and developed this block of code, so that console.log
work only in firefox and to avoid error messages in IE.
function clog() {
if(window.console && window.console.firebug) {
var a =[];
for(var i=0;i<arguments.length;i++) {
a.push(arguments[i]);
}
console.log(a.join(' , '));
}
}
my code is working fine and I'm getting the results which I wanted,
but when I tried to use the above code on jQuery ( for example clog($('body'));
),
the result which I expected is to be jQuery(body)
. but I'm getting the result as [object Object]
How can I get The results which I expected ?
Thank you !!