Could anyone explain to me why the third alert function is simply not called?, and a possible reading resource in relation to the error.
<script type="text/javascript">
$( document ).ready(function() {
myFunction();
});
function myFunction()
{
alert("First Function");
mySecondFunction(function () {
alert("Third Function");
});
}
function mySecondFunction()
{
alert("Second Function");
}
$( document ).ready(function() { myFunction(); });in your case could be wrote$(myFunction)