1<script>
2 $(document).ready(function () {
3
4 $("#button1").click(function () {
5 $("#div1").load("/Home/GetPartial");
6 });
7
8 });
9</script>
1public IActionResult GetPartial()
2{
3 List<string> countries = new List<string>();
4 countries.Add("USA");
5 countries.Add("UK");
6 countries.Add("India");
7
8 return PartialView("_CountriesPartial",countries);
9}
1<button type="button" id="button1">Load Partial View</button>
2
3<div id="div1"></div>