title: How can I pass an object value name to a function in Jquery
body: <p>I'm working with the JQuery Simple modal plugin and I would like to pass a Freemarker variable/object on the click of a link to my Jquery function.</p>
  
  <p>As a test, I created an alert box to see if the value is being passed and it doesn't seem to work.</p>
  
  <pre><code>$(function() {
  
      // Load dialog on page load
      //$('#basic-modal-content').modal();
  
      // Load dialog on click
      $('#hey').click(function myName(uid) {
          var x = uid;
          alert(uid);
  
          return false;
      });
  });
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;div id="disclaimer${item.uid}"&gt;
      Modal data
  &lt;/div&gt;
  
  &lt;a onclick="myName('${item.uid}')" id="hey"&gt;Read the blog&lt;/a&gt;
  </code></pre>
  
  <p>The alert box just comes up as a blank object.  Any help would be appreciated. Thanks!</p>