title: Ajax get a return value from php?
body: <p>I want to alert the return value from a php method, but nothing happens. Here is the ajax and php methods. Can anyone see what I am doing wrong? </p>
  
  <p>--------------------------------------…
  Ajax script </p>
  
  <pre><code>$.ajax({
      type: 'get',
      url: '/donation/junk/4',
      data: datastring,
      success: function(data) {
          alert(data');
      }
  });
  </code></pre>
  
  <p>--------------------------------------…
  php method</p>
  
  <pre><code>function junk($id)
  {
      return "works11";
  }
  </code></pre>