Partial view jQuery script is not working in Mvc Core
This Partial view: @model SetIsApprovedModel <form id="frmApprove" data-ajax="true" data-ajax-method="post" data-ajax-url="@(Url.Action("SetApprove", "AccountAdmin"))" data-ajax-success="onsuccess" data-ajax-mode="replace" data-ajax-update="#approvePartial" data-ajax-loading="#loadingApprove" data-ajax-failure="failed"> <input type="hidden" asp-for="@Model.UserName" /> <div class="row px-3 mb-1"> <div class="col-md-5 text-md-end fw-bold">Approved: </div> <div class="col-md-7 text-md-start" id="IsApprovedDiv"> <input id="chkApprove" type="checkbox" asp-for="@Model.IsApproved" /> </div> <input…