load partial view in div in asp net core with ajax code example
Example 1: asp.net core 3.1 ajax partial view
<script>
$(document).ready(function () {
$("#button1").click(function () {
$("#div1").load("/Home/GetPartial");
});
});
</script>
Example 2: asp.net core 3.1 ajax partial view
<button type="button" id="button1">Load Partial View</button>
<div id="div1"></div>