title: Pass parameters to a modal - ColdFusion
body: <p>I am trying to pass parameters to a user profile modal when I press on their name. My table is generated dynamically with a loop and one of the values is something like this:</p>
  
  <pre><code>   &lt;td&gt;&lt;a href="##" data-reveal-id="profileModal" 
            data-id="#ContactID#"&gt;Take Action&lt;/a&gt;
     &lt;/td&gt;
  </code></pre>
  
  <p>I was attempting to use <code>data-id</code> to pass in the contactID of each user, but I don't know how to use the parameter when my modal opens. At the moment I am using </p>
  
  <pre><code>   &lt;td&gt;&lt;a href="/admin/_guestProfile.cfm?contactid=#ContactID#" 
             target="_blank" &gt;Take Action&lt;/a&gt;
     &lt;/td&gt;
  </code></pre>
  
  <p>which is opening a new window and I am passing the parameter through the url, but I don't like this from a user experience point.</p>
  
  <p>How can I take the data-id value and use it for operations inside my modal. Is there a better way than what I am attempting to accomplish?</p>
  
  <p>The name of the plugin that I am using is <code>jQuery Reveal Plugin 1.1</code> and this is the website that contains the code for it <a href="http://www.zurb.com/playground/reveal-modal-plugin" rel="nofollow">http://www.zurb.com/playground/reveal-modal-plugin</a></p>