title: How to dynamically create a C# Select TagHelper with JavaScript
body: <p>I have a button then when clicked creates a table row with a select element inside of it. I want to insert a tag helper dynamically using javascript. Is there a way to insert a TagHelper via javascript or am I just going to have to do it the long way and build out the select?</p>
  <pre><code> function createNewRow() {
       var row = `&lt;tr&gt;
       &lt;td&gt;&lt;select&gt;&lt;/select&gt;&lt;/td&gt;
       &lt;td class=&quot;rowControl&quot;&gt;&lt;input id=&quot;setLeadCheckbox&quot; type=&quot;checkbox&quot; /&gt;&lt;/td&gt;
       &lt;td class=&quot;trash-cell&quot;&gt;&lt;i class=&quot;fa-regular fa-trash-can fa-2x&quot;&gt;&lt;/i&gt;&lt;/td&gt;
       &lt;/tr&gt;`;
  
       $('#staffTable').append(row);
   }
  </code></pre>
  <p>I instead want to use the built in .NET Core Select Tag Helper</p>
  <pre><code>&lt;select asp-for=&quot;SelectedEmployeeId&quot; asp-items=&quot;Model.Employees&quot;&gt;&lt;/select&gt;
  </code></pre>