Sublime Forum

Console log showing error with jquery, yet it still works

#1

Ive put something as simple as “$(document).ready(function() {
$(“body”).text(“Hello world!”)
});” into sublime and it returns with this in the console window http://prntscr.com/fjg2sh. This is driving me nuts, not sure whats wrong with it.

Thanks

0 Likes

#2

Although i have jquery linked properly (before the js file), and it is properly loading (i checked that as well), its still acting like it doesnt understand jQuery, although it just run the code and it works as expected

0 Likes

#3

It may be this (http://www.wikihow.com/Create-a-Javascript-Console-in-Sublime-Text) thats my issue, i used it so that i could see console.log output with js code. Not sure though

0 Likes