title: jquery call to javascript function that returns true returns undefined
body: <p>I have a jquery function that is triggered by a button click. When it then calls a javascript function that returns true however, jquery claims the value is undefined. </p>
  
  <pre><code>function mytrue()
  {
    alert ("true is returned");
    return true;
  }
  
  $('#save').click(function() 
  {
     var response = mytrue();
     if (response) { 
        alert ("This should work!");
     } else
     {
        alert ("This is puzzeling? "+response);
     }
  }
  </code></pre>
  
  <p>I get the "true is returned" alert and the "This is puzzeling? undefined" alert.</p>