0
<script type="text/javascript" src="jquery-2.0.3.min.js">
    alert("hello");
</script>

I wrote an inline function that for some reason when I ran onclick says it doesn't exists so I tried to simplify it completely till it works but I found out even this code doesn't work. It does work on a empty page though!It is located under all my other code in said page; no body tags only DIVs - right after the last div .Maybe it is because of the frameworks I'm using? I have firebase/angularjs/nodejs. I also tried to do document ready calls and console.log(); getting no errors but also nothing popping up either. EDIT: it is literally not a duplicate because I tried all other solutions. Here is more code: I tried to put it into the last div and outside of it.

<!-- <a class="btn-for-pw" ng-href="">Forgot Password?</a> -->

              </form><!-- end of #signupForm -->

          </div>

          <!--Footer-->
          <div class="modal-footer text-center">
              <a ng-href="#/register">Create an Account</a>
          </div>

      </div>
      <!--/Form with header-->

  </div>
  </div>
 <script type="text/javascript" src="jquery-2.0.3.min.js"/>
<script>
    alert("hello");
</script>

Maistrenko Vitalii
  • 994
  • 1
  • 8
  • 16

1 Answers1

0

Try putting another script tag after you include your jQuery source. as the script inside will be disregarded.

Here is a jjsFiddle

<script type="text/javascript" src="jquery-2.0.3.min.js"/>
<script>
    alert("hello");
</script>

Good luck :-)

Hayden Passmore
  • 1,135
  • 2
  • 12
  • 34