title: HTML select a row under the <td> tag in UIWebView
body: <p>I have a <code>UIWebView</code> in which I have loaded a htmlString which contains the text in a table format under the  tag. The  tag is inside the  tag. Under the  tag. What I need to do is change the color of the text on tap.</p>
  
  <p><strong>Code :</strong> </p>
  
  <pre><code>&lt;tr id = '1' valign=\"top\"&gt;
    &lt;td&gt;
      &lt;p&gt;
        &lt;a href = '#1'&gt; TEXT &lt;/a&gt;
      &lt;/p&gt;
    &lt;/td&gt;
    &lt;td&gt;
      &lt;p&gt;
        &lt;a href = '#1'&gt; TRANSLATION &lt;/a&gt;
      &lt;/p&gt;
    &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>What I need is when tap on "TEXT" OR "TRANSLATION" THE TEXT COLOR SHOULD CHANGE.</p>
  
  <p>I am writing this javascript code to change color.</p>
  
  <pre><code>&lt;script&gt; var el = document.getElementById(\"%d\"); 
       window.onload = function () {
       window.scrollTo(20,el.offsetTop); 
       el.style.color=\"red\"; 
     } 
  &lt;/script&gt;
  </code></pre>
  
  <p>Please help.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>This is my html file where i am replacing the above given "tr" tag with ###CONTENT###</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;style type='text/css'&gt;
  
          a:link {
              text-decoration : none;
              color: black;
          }
  
          a:visited {
              color: black;
          }
  
          a:hover {
              color: red;
          }
  
  
          table {
              table-layout: fixed;
              width: 280px;
          }
          html,body {
              margin: 0;padding: 0;
          }
          html {
              display: table;
          }
          body {
              font-family:'MSH-Quraan1';
              font-size:17px;
              display: table-cell;
              vertical-align: middle;
              padding: 10px;
              text-align: center;-webkit-text-size-adjust: none;
          }
          &lt;/style&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;table&gt;
              ###CONTENT###
          &lt;/table&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>