I want to add a PartialView multiple times by pressing a button.
<div id="FilterRows">
@{Html.RenderAction("_FilterRow");}
</div>
<button id="newRow" type="button"
class="btn btn-sm btn-default"
style="width: 50px">+</button>
This piece of code works properly. But now i want to append the div FilterRows with another PartialView of _FilterRow at clicking on the button.
Something like:
$(document).ready(function() {
$("#newRow").click(function() {
$("#Exec").append("<br>", @{Html.RenderAction("_FilterRow");} {
});
});
});
Is unfortunately not working. Any Ideas?