How do I render the partial view using jquery?
We can render the partial View like this:
<% Html.RenderPartial(\"UserDetails\"); %>
I did it like this.
$(document).ready(function(){ $("#yourid").click(function(){ $(this).load('@Url.Action("Details")'); }); });
Details Method:
public IActionResult Details() { return PartialView("Your Partial View"); }