I have searched a lot and unable to find a fix for my rather simple problem.
I am unable to embed jQuery in my javascript code. I have downloaded the latest version of jquery from http://jquery.com/download/ and have downloaded the compressed, production version 3.2.1. I, then, saved the file on my local(which is in the same folder as the HTML file) and referenced it in my code like below :
<!DOCTYPE html>
<html>
<head>
<title>Learning jQuery</title>
<script type="text/javascript" src="jquery.min.js"></script>
</head>
<body>
<script>
if(typeof jQuery != "undefined" ){
alert("jquery is installed");
}else{
alert("jquery not installed");
}
</script>
</body>
</html>
Every time I execute this on a browser, it always pops up "jQuery not installed", instead of "jquery is installed".
Can anyone please help and point out what wrong am I doing here. Thanks in advance.