Loop Button inside the Loop Div
<p>I'm new here, I'm stuck in problem in which i have to loop my button so that i will be able to put it on my looping div. How will I do that? This is what I got so far:
 //my loop</p>

<pre><code>for (i = 0; i &lt; MPreply.recommendation.Length; i++) {
   html += "&lt;div class='rec'&gt; ";
   html += "&lt;/br&gt; &lt;div id = 'from1' value =  &gt; Depart From:" + " ";
   html += emz + " " + "(" + + ")" + "&lt;/div&gt;";
   html += "&lt;div id = 'date1' &gt; Schedule:" + " " + flytDate;
   html += " , " + convertedString;
   html += "&lt;/div&gt;" + "&lt;div id = 'to1' &gt;To:" + " " + emz2 + " " + "(" + "" + ")";
   html += "&lt;/div&gt; &lt;/br&gt; &lt;/br&gt; &lt;/br&gt; ";
   html += "&lt;div id = 'RecNo'&gt;" + " " + (i + 1) + " )" + " &lt;/br&gt; &lt;/br&gt; &lt;/div&gt; ";
   html += "&lt;div id = 'fare1'&gt; $" + em + "  &lt;/div&gt; ";
   html += " &lt;/div&gt;  &lt;br/&gt; &lt;br/&gt;";
   div_rec.InnerHtml = html;
}
</code></pre>

<p>html:</p>

<pre><code>&lt;div id = 'modal' runat="server" &gt;
        &lt;div id="dialog" runat="server"&gt;

        &lt;/div&gt;
        &lt;input id="_menuitem" type="button" value="Click" runat="server" /&gt;
    &lt;/div&gt;  
</code></pre>

<p>Thanks in advance.</p>
