title: Load variable data from click
body: <p>I have some simple links like:</p>
  
  <pre><code>&lt;a id="en"&gt;EN&lt;/a&gt; &lt;a id="fr"&gt;FR&lt;/a&gt; etc...
  </code></pre>
  
  <p>and the following code:</p>
  
  <pre><code>$en = 'This is some data that should appear in the textarea for EN';
  $de = '';
  $es = '';
  $fr = '';
  $it = '';
  $pl = '';
  $pt = '';
  $zhcn = '';
  $zhtw = '';
  $jp = '';
  
  $(document).ready(function(){
  
      $('a').click(function(e){
  
          $code = $ + $(this).attr('id');
  
          $('textarea.code').val( $code );
  
      });
  
  });
  </code></pre>
  
  <p>What I want to do is when the user clicks a link, get the data from the related variable and put it inside the textarea with the class of code. Currently I'm just getting: <code>function (a,b){return new e.fn.init(a,b,h)}en</code></p>
  
  <p>How do I do this? Thanks</p>