i have partial hooking scripts. links scripts following:
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
there 1 javascript script made myself in partial. unable serve it. i'm attempting:
<script type="text/javascript" src="/javascripts/myjavascript.js>"></script>
where myjavascript.js belongs javascripts belongs public. error here 404 not found.
please note scripts online source work fine , being served in same partial. can assure spelling correct , file exists @ src location. doing wrong?
my error message attaches strange extension too. not sure if that's clue or not.
you have typo in code:
<script type="text/javascript" src="/javascripts/myjavascript.js>"></script> '>' not belong here --^
the corrected code be
<script type="text/javascript" src="/javascripts/myjavascript.js"></script>
Comments
Post a Comment