JS Open and Close menu not working in Brackets


#1



after completing the exercise i tried to see if it will work for me in Brackets, but it does not.  this is the html header.  and the bootstrap I have it connected to. 

<head>
   
    <!-- Required meta tags always come first -->
    <meta charset="utf-8">
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400;300' rel='stylesheet' type='text/css'>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <script type="text/javascript" src="script.js"></script>

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="css/bootstrap.min.css">
    
    <!--    Custom CSS-->
    <link rel="stylesheet" href="main.css">
    
  </head>

/* JAVA BOOTSTRAP at the bottom of body */

<srcipt src="https://ajax.googleapis.com/ajax/libs/jquery/2.14/jquery.min.js"></srcipt>
<script src="js/bootstrap.min.js"></script>

/* And then i place my js */

it wont run... hmm.


#2

Move this line to the bottom, under the other two scripts.


#3

Hey, thanks for the response. It is still not working, even after i placed it in my own script.js file within my workspace. Also I don't know why but brackets is extremely not satisfied with the code. Like every line has a "problem".


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.