Hello, I have the following function:
function comprobarCondicion(opcion) {
this.value = opcion;
if (opcion == '164.132.203.28:455') {
}
}
If I put it in index.html , it works for me and if I put it in my main .js it does not work, just in case if I'm calling js from the index.
<script type="text/javascript" src="js/mt6.js"></script>
and I call it in onchange
to the function.
onchange="comprobarCondicion(this.value)"
Well anyway, the error is that the function appears to me as undefined if I put it in my .js and if I put it in the index.html it goes all good.