-1

Why is the fiddle not printing in console:

HTML:

<input id="clickMe" type="button" value="clickme" onclick="validateEmail();" />

JavaScript

function validateEmail() {
    console.log("ABC\n");
}

http://jsfiddle.net/amandeepautam/HKhw8/539/

Reference: Print Var in JsFiddle

Community
  • 1
  • 1
Aman Deep Gautam
  • 8,091
  • 21
  • 74
  • 130

1 Answers1

1

Looks like there's an error in the script: "Uncaught ReferenceError: $ is not defined"

Seems you need to reference JQuery (its in "Frameworks & Extensions" dropdown)

jt000
  • 3,196
  • 1
  • 18
  • 36