title: JQuery add <a> element to td with Cell Index Row Index
body: <p>I have data from database that needs to be placed according to the cell index and row index as shown:</p>
  
  <pre><code>&lt;script&gt;
          $('.myTable tr:eq( &lt;?php echo $row; ?&gt; )').find('td:eq(&lt;?php echo $col; ?&gt;)').text('&lt;?php echo $data; ?&gt;');
  &lt;/script&gt;
  </code></pre>
  
  <p>But how do I add link to the td? 
  I've tried this:</p>
  
  <pre><code>&lt;script&gt;
          $('.myTable tr:eq( &lt;?php echo $row; ?&gt; )').find('td:eq(&lt;?php echo $col; ?&gt;)').html('&lt;?php echo "&lt;a href='#' id='data'&gt;" .$data. "&lt;/a&gt;"; ?&gt;');
  &lt;/script&gt;
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>&lt;script&gt;
          $('.myTable tr:eq( &lt;?php echo $row; ?&gt; )').find('td:eq(&lt;?php echo $col; ?&gt;)').append('&lt;?php echo "&lt;a href='#' id='data'&gt;" .$data. "&lt;/a&gt;"; ?&gt;');
  &lt;/script&gt;
  </code></pre>
  
  <p>But none is working. Am I doing it wrong?</p>