Я хочу узнать, как использовать параметр sk в функции "prideti" в переменной "tmp_row", чтобы я мог увеличивать массив каждый раз, когда я использую функцию и добавляю строку в свою таблицу
@section Scripts {
@Scripts.Render("~/bundles/jqueryval")
<script>
function prideti(sk) {
var tmp_row = `<tr>
<td>
@Html.EditorFor(model => model.dalyviai[0].vardas, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.dalyviai[0].vardas, "", new { @class = "text-danger" })
</td>
<td>
@Html.EditorFor(model => model.dalyviai[0].pavarde, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.dalyviai[0].pavarde, "", new { @class = "text-danger" })
</td>
<td>
@Html.EditorFor(model => model.dalyviai[0].telefonas, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.dalyviai[0].telefonas, "", new { @class = "text-danger" })
</td>
<td>
@Html.EditorFor(model => model.dalyviai[0].el_pastas, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.dalyviai[0].el_pastas, "", new { @class = "text-danger" })
</td>
<td>
@Html.DropDownListFor(model => model.dalyviai[0].fk_projektas, Model.projektaiList, "--------------", new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.dalyviai[0].fk_projektas, "", new { @class = "text-danger" })
</td>
</tr>`;
$("#kainos_tbl tr:last").after(tmp_row);
$('#hCount').val(Number($('#hCount').val()) + 1);
$(".date-picker").datepicker({ dateFormat: 'yy-mm-dd' });
};
``