title: Execute colorbox function onClick in a table?
body: <p>I'm trying to open a different ajax modal for each table row clicked.
  So I did this:</p>
  
  <pre><code>&lt;tr onclick="$.colorbox({href:"ajax.html"});"&gt;
      &lt;td&gt;Hello&lt;/td&gt;
      &lt;td&gt;menu&lt;/td&gt;
      &lt;td&gt;chicken&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>That, however doesn't work - while this does:</p>
  
  <pre><code>&lt;p&gt;Click for ajax function&lt;/p&gt;
  
  $("p").click(function () { 
  
      $.colorbox({href:"ajax.html"});
  
  });
  </code></pre>
  
  <p><a href="http://nightlifebratislava.com/demos/colorbox/example1/" rel="nofollow">Here's a running example</a></p>
  
  <p>If anyone could please point me in the right direction I would be extremely happy :)) Thanks everyone!:)</p>