I am using ASP.NET Core application. Lets say I have following form
<form asp-controller="Demo" asp-action="RegisterAddress" method="post">
Email: <input asp-for="Email" /> <br />
Password: <input asp-for="Password" /><br />
Address: <input asp-for="Address.AddressLine1" /><br />
<button type="submit">Register</button>
</form>
I want to show busy indicator when user clicks submit button. I know how to do it using JQuery and Ajax. If i use jQuery's ajax method to POST data then i dont need asp-controller
,asp-action
attribute on the form. But i would like to have everything defined in HTML. Instead of having partial POST logic in javascript.
So is there anyway to show busy indicator WITHOUT using JQuery + Ajax?