JavaScript is not called

JavaScript is not called or JavaScript on the page is not shown in F12 debugger. The cause could be as in my case, there is an error in JavaScript. The following JavaScript is not shown in F12 debugger if I remove the commented Script.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery/jquery.colorbox.js"></script>
<script type="text/javascript">
alert("I am called");
        /*
          $(document).ready(function(){
        //Examples of how to assign the Colorbox event to elements
        $(".color1").colorbox({rel:'color1'});
        }
        */

Thee problem here is , } should be });

$(document).ready(function(){
        //Examples of how to assign the Colorbox event to elements
        $(".color1").colorbox({rel:'color1'});
        });

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*