tags:

views:

425

answers:

2

Why does this:

jQuery(document).ready(function($) {
    console.log("test");
});

produce this error message: console is not defined

In Firefox 3.5.6 on Windows XP?

+7  A: 

The Firebug extension defines the console object in Firefox. It needs to be installed or there will be a JS error.

Annie
Annie, thanks for the answer.But I'm looking at the error in firebug. :(
cf_PhillipSenn
Definitely try upgrading Firebug. If that doesn't work, try again on a new profile: http://support.mozilla.com/en-US/kb/Managing+profiles#Creating_a_profile
Annie
+3  A: 

Which Firebug version are you using? I had the same problem with version 1.4.5 in Firefox 3.5.6 on MacOS. What I did is, I installed the latest beta version from http://getfirebug.com/releases/firebug/1.5X/

After that it worked perfectly again.

Flo