title: Uncaught SyntaxError: Invalid or unexpected token
body: <p>I have a razor syntax like this:     </p>
  
  <pre><code>   foreach(var item in model)
   {
  &lt;td&gt;&lt;a href ="#"  onclick="Getinfo(@item.email);" &gt;6/16/2016 2:02:29 AM&lt;/a&gt;  &lt;/td&gt;
   }
  </code></pre>
  
  <p>My javascript that recieves the request goes like this:</p>
  
  <pre><code>&lt;script type="text/javascript" src="~/Scripts/jquery-1.9.1.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      function Getinfo(elem) {
          var email = document.getElementById(elem).innerHTML;
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>When clicking on the href link, I get the following error in the console of the browser:</p>
  
  <blockquote>
    <p>"Uncaught SyntaxError: Invalid or unexpected token",</p>
  </blockquote>
  
  <p>and this part is underlined:</p>
  
  <pre><code>    **&lt;/a&gt;  &lt;/td&gt;**
  </code></pre>
  
  <p>I am a beginner so I get stuck in syntax a lot. If it is that then please help me out.</p>