0

when I click the button nothing happens, I can't find my error:

<html>
<head>    
<script type="text/javascript" src="jquery-3.2.1.min.js" />
</head>
<body>

<script type="text/javascript">    
$(document).ready(function(){
  $("#btnSubmit").click(function(){
      alert("button");
  });
});

</script>
<input id = "btnSubmit" type="submit" value="Release"/>
</body>
</html>

can you give me a hing?

matthias
  • 1,938
  • 23
  • 51
  • Your script tag isn't properly closed. Even the syntax highlighter above caught it. – j08691 Jul 25 '17 at 17:24
  • Any errors in your [JavaScript console](https://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers)? For starters, your `` – Paul Roub Jul 25 '17 at 17:25

1 Answers1

1

Try this code.

<html>
<head>    
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>

<script type="text/javascript">    
$(document).ready(function(){
  $("#btnSubmit").click(function(){
      alert("button");
  });
});

</script>
<input id = "btnSubmit" type="submit" value="Release"/>
</body>
</html>
Kamran Jabbar
  • 858
  • 7
  • 21