javascript - jQuery document load not being called -
this question has answer here:
- why don't self-closing script tags work? 10 answers
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
Post a Comment