javascript - jQuery document load not being called -


this question has answer here:

when click button nothing happens, can't find 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 give me hing?

try 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> 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -