I just want a quick question regarding javascript. I saw on w3schools the onchange on select to run a function. I am still learning Javascript and jQuery so if I miss something, please tell me.
<select id="mySelect" onchange="myFunction()">
.....
</select>
Then on my external JS File:
$(document).ready(function () {
.....
console.log("TEST01");
function myFunction() {
console.log("TEST02");
}
.....
});
When I load my page, on console, I can see TEST01 printing but when I made some changes in select, it gives me ReferenceError myFunction is not defined