vendredi 22 mai 2020

Javascript console.log command in Django is not working?

i am trying to print in chrome console for debugging. if i am running the same code without Django then console.log() is working fine, but while using it in Django console.log() is not printing anything. i searched the web about it and i didn't got any direct answer.

var inputDiv = document.querySelectorAll(".todo");
console.log(inputDiv)

The above code is from my Js file in my project. If i am directly executing these code in chrome console then it's working fine.I am also new to Django please help.




Aucun commentaire:

Enregistrer un commentaire