title: Use JavaScript-Variable in jQuery
body: <p>I´m having a normal JavaScript-function and want to use the Variable (myVar) also in my jQuery Code - is this possible? and how?:</p>
  
  <pre><code>&lt;a onclick="showtitle(abctitle);" href="#"&gt;Testlink&lt;/a&gt;
  
  &lt;script&gt;
  function showtitle(myVar) {
      myTitle = myVar;    
  }
  
  $(document).ready(function() {
      alert(myTitle); //I would like to alert "abctitle"
  };
  &lt;/script&gt;
  </code></pre>