hi guys, please i need your help in figuring out why my machine isn't loading googles cdn. i suspect its a path issue but i am unable to detect what is actually wrong.
here is my code snippet
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>getting jquery</title>
<script type="text/javascript" src= "//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"> </script>
<script type="text/javascript">
google.load("jquery", "1.8.1");
google.setOnLoadCallback(function()
{
console.log($('#title').text());
});
</script>
</head>
<body>
<h1 id="title">Getting jquery</h1>
</body>
</html>
but i get an error saying : "ReferenceError: google is not defined" in my console log.
any help would be appreciated
thanks