Garmaine Staff asked 2 years ago

I know there are similar problems as one I am having, but I tried different solutions (at least I think) and nothing is working. So I wrote JQuery code in JS file but when I put path for js and jq version in HTML file it just isn't working in either of my web browsers, but when I put JQuery code direct in HTML it is working. I checked code many times,searched for typing mistakes but didn't find anything. Maybe I didn't see something obvious so please tell me. This is my first time with this so…Thank you

$(document).ready(function() {
  $(".collapse-control").click(function() {
<!DOCTYPE html>

  <meta charset="UTF-8">


  <meta name="viewport" content="width=vice-width, initial-scale=1">
  <meta name="author" content="Unknown">
  <meta name="description" content="description">
  <meta name="keywords" content="web,html,css,html5,development">

  <script src="js/script.js"></script>
  <script src=""></script>



  <div class="collapse">

    <h2 class="collapse-control">Open box 1</h2>

    <div class="collapse-box">
      This is box 1