waran waran -5 years ago 225
jQuery Question

jQuery console.log() doesn't work in Firefox

I'm working in jQuery 3.1.0 and I want to use the

function to debug my code (I use the default developer console in Firefox 47.0).

I tried the following code:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>

elements are in the
element (at the end, just before

When trying to run the page, I get the alert with the correct number, but the console is empty. When i tried to type in
into the command line, it responds

screenshot here

(I'm sorry for my terrible English.)

Edit: I now tried with the following code, but it still doesn't seem to work:

<!DOCTYPE html>
<meta charset="utf-8">

Answer Source

You must enable Zurnal option (grey circle) in the top tab where CSS, JS, ... in the developer console.

Else, you will not get log output.

In spanish is Registro. In english it will be something like Registry/Logs.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download