title: How can i convert a below div into the following form as shown below
body: <p>This is the table which i have written in foreach loop</p>
  <pre><code> &lt;td&gt;@Html.TextBoxFor(a =&gt; a[j].Hiring_Manager_ID, new { placeholder = &quot;Hiring Manager ID&quot;, @class = &quot;form-input&quot; })&lt;/td&gt;
  </code></pre>
  <p>and i have added a div container in the next line as follows</p>
  <pre><code>  &lt;td&gt;@Html.TextBoxFor(a =&gt; a[j].Hiring_Manager_ID, new { placeholder = &quot;Hiring Manager ID&quot;, @class = &quot;form-input&quot; })&lt;/td&gt;
                      &lt;td&gt;
                          
                          &lt;div class=&quot;dropdown&quot; asp-for=&quot;Status&quot;&gt;
                              &lt;button class=&quot;btn btn-default dropdown-toggle&quot; asp-for=&quot;Status&quot; type=&quot;button&quot; data-toggle=&quot;dropdown&quot;&gt;
                                  Status
                                  &lt;span class=&quot;caret&quot;&gt;&lt;/span&gt;
                              &lt;/button&gt;
                              &lt;ul class=&quot;dropdown-menu&quot;&gt;
                                  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Yet To Start&lt;/a&gt;&lt;/li&gt;
                                  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;In Progress&lt;/a&gt;&lt;/li&gt;
                                  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Completed&lt;/a&gt;&lt;/li&gt;
                              &lt;/ul&gt;
                          &lt;/div&gt;
  
                      &lt;/td&gt;
  </code></pre>
  <p>The issue is it's the div block is not getting looped can any one please tell me how to add a=&gt;a[j] for the above div block so it can get looped <strong>Thanks In Advance</strong></p>