I have two scripts:
<script src="../js/createopp.min.js"></script>
<script src="../js/validation.min.js"></script>
This following line is in the first script, calling a function in the other one:
$('#places').blur(function(){checkPlacesAvailable()});
If I rewrite this as
$('#places').blur(checkPlacesAvailable());
I get a "not defined" error on the function. But I see many examples where the second format is used. Is there something obvious stopping the second version from working in my case?