I'm trying to execute a JavaScript function. I get an error everytime the function enters the Ajax block saying:
$ is not defined
How can I solve this problem? I'm Programming a Google Chrome Addon
and I get this error in my .js file:
At the moment ther is just the function above and its caller in the file:
// Calls get_pw function
document.addEventListener('DOMContentLoaded', function(){
document.getElementById('submit').addEventListener('click', get_pw)
})
Many Thanks