javascript - Script error Uncaught SyntaxError: missing ) after argument list -


i new jo jquery , ajax , trying write simple page display data on button click without refreshing page. seeing

uncaught syntaxerror: missing ) after argument list

i have placed files in www folder of wamp , in same folder have data.txt file. checked parenthesis , curly braces closed.

<!doctype html> <html> <head>     <title>mytitle</title>     <script         src="https://code.jquery.com/jquery-3.2.1.min.js"         integrity="sha256-hwg4gsxgfzhoseeamdoygbf13fyquitwlaqgxvsngt4="         crossorigin="anonymous"></script>      <script>         $(document).ready(function(){             $("#btn").click(functin(){                 $("#test").load("data.txt");             });          });     </script>  </head>  <body>     <div id="test">         <p> first comment</p>     <div>     <button id="btn">submit</button>  <body> </html> 

hi there error in code:

you can see line

    $("#btn").click(functin(){ 

it "functin" , must "function".


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -