Need help using ajax

Need help using ajax

Hey Guys. I am new with ajax, and I am trying to retrieve data and append it to a div tag.   For some reason my code below doesn't seem to work :(

  1. $(function(){
  2.  $.ajax({ url: "testdata.txt",
  3. type: "GET",
  4. dataType: "text",
  5.  success: "successFN" }); // End of $.ajax

  6. function successFN(result) { $("#result").append(result); } });// End of function
  7.  </script>
        </head>
        <body>
            <div id="result"></div>
        </body>
    </html>