My problem is that I am currently trying to call an onclic type function through a button, but when I click on the button in the browser console it appears that it is not defined:
I miss it:
Uncaught ReferenceError: siguiente_promo is not defined
at HTMLButtonElement.onclick (index.php:227)
Button code:
<button type="button" name="next" class="next action-button" value="Siguiente" onclick="siguiente_promo(0);" >
Siguiente   <i class="fa fa-chevron-right"></i></button>
I mark that error because when I want to read the .js file it does not read what is inside.
Link code:
<script src="vista/plugin/form/archivo.js" type="text/javascript"></script>
Code at the beginning of the .js file:
$( document ).ready(function() {
console.log( "formulario de promotor" );
alert("Entro");
var correcto=0;
});
The document.ready does not run it, at least the one in the file where the function is, I already erase cookies from my browsers and test it in three different browsers. The address is correct because before it worked