I'm playing with Bootstrap, but it seems that I cannot make my external js script work.
I loaded at the end of my HTML file the following scripts:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/myscript.js"></script>
Jquery gets loaded first, and then I call my script which is positioned in the js folder, which is placed in the root directory.
jQuery(function(){
"use strict";
$("#services h2").text("Hello World");
)};
If I try this simple code in the HTML page it works, but not in the external file. I tried to read other answers but I couldn't figure where the problem resides. Do I need to set up a LAMP environment to make this work?
myscript.js?