I'm trying to figure out the jQuery code syntax for calling a function in a separate .js file still referenced with a script href tag in my head tags. So here is essentially what I have.
<head>
<script type="text/javascript" src="/Publish/Depts/EWI/scripts/prehomefunctions.js"></script>
<script type="text/javascript" src="/Publish/Depts/EWI/scripts/feedFunctions.js"></script>
</head>
//Inside feedFunctions.js
if(condition){functionName1()};
//Inside prehomefunctions.js
function functionName1(){
///DO SOMETHING
};
at this point whenever I try to execute this my feedFunctions.js file throws an error saying that "functionName1" is not a function because the file cannot find this function within itself, but I'm trying to make it point to prehomefunctions.js to find this function.
any help would be much appreciated.