this is the HTML code that I have written.
<input type="button" name="signup_submit" data-toggle="collapse" data-target="#panel" onclick="generate('#report', '_DailyReport', 'Reports');" class="btn btn-primary toggle" id="btnSubmit" value="Generate" />
partial view div
<div class="panel panel-default" id="report" style="display:none">
this is the AJAX request function to display the partial view
var generate = function (editHtmlInnerId, EditActionName, EditcontrollerName) {
debugger;
$.ajax({
url: "/" + EditcontrollerName + "/" + EditActionName,
type: $("#addNewUserForm").attr('method'),
data: $("#addNewUserForm").serialize(),
success: function (result) {
$(editHtmlInnerId).html(result);
$(editHtmlInnerId).show();
},
error: function () {
}
});
};
I want to show a loading indicator until the data loads in the partial view. The partial view contains a table that generates data.