Unable to pass the array value in the Hyperlink
<p>Below is the code that I am using with Jquery to pass a value when a hyperlink is selected on sharepoint disp form.</p>

<pre><code>for(var i=0;i&lt;retval.length;i++)
{
 strHTML = strHTML +  "&lt;a href='url.aspx?ID= '+retval[i]+' &amp;Source= url'&gt;" + retval[i] + "&lt;/a&gt;";
 strHTML = strHTML + " ";
 }

  strHTML = strHTML + "&lt;/div&gt;";


   $("textarea[Title='Test']").closest("span").find("iframe[Title='Rich Text Editor']").contents().find("body").html(strHTML); 
</code></pre>

<p>Its unable to read the value in retval[i], its breaking right at ID. Is the syntax wrong?  </p>
