javascript - jQuery not working on my HTML page -


jquery not working on html page. code/syntax issues. need pair of eyes.

<head> <script src="../common/js/jquery-1.9.0.js"/> <script> $(document).ready(function(){   $("#insert").click(function(){       alert("ok");   });  }); </script> </head>  <body>     <input type="submit" id="insert" value="insert"/> </body> </html> 

my file there sure, alert not popped up. please help

the script not self closing tag, need remove forward slash @ end of script start tag.

change

<script src="../common/js/jquery-1.9.0.js"/> 

to

<script src="../common/js/jquery-1.9.0.js"></script> 

Comments