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.

https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
http://jquery/jquery.colorbox.js
<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'});
        });
Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s