title: Javascript onClick event to open modal
body: <p>I am using a modal plugin that I discovered from <a href="http://github.com/kylefox/jquery-modal" rel="nofollow">here</a> that works great for my application. I make the modal appear by linking to it this way:</p>
  
  <pre><code>&lt;a href="#myDiv" rel="modal:open"&gt;Make Modal Appear&lt;/a&gt;
  </code></pre>
  
  <p>However, I'd like to use the onclick event with a button to make the same plugin work but I can't figure out how to use the "rel=modal:open" code with the onclick event. Without "rel=" command in there, the plugin won't function properly. Any help would be greatly appreciated. </p>