title: not able to access the dynamic id in a table row
body: <pre class="lang-js prettyprint-override"><code>var id =123; 
  </code></pre>
  <pre class="lang-html prettyprint-override"><code>&lt;td&gt;
    &lt;a href=&quot;objectives.html&quot; onclick=&quot;location.href=this.href+'?id='+ id;return false;&quot;&gt; 
      &lt;i class=&quot;fas fa-angle-right&quot;&gt;&lt;/i&gt; 
    &lt;/a&gt;
  &lt;/td&gt;
  </code></pre>
  <p>Inside a table <code>&lt;td&gt;</code> I have put this code and not able to fetch the id inside the td. Id can not be fetched and not able to pass the id in href.</p>