I'm trying to show spinner loader when I click on submit button but submit button is not working. spinner loader appears for some time but submit button not hitting to the controller method. And if you have any better login on this please guide me.
Here's my button code
- "button-spinner" style="margin-left: 10px; width: 15px; height: 15px; display: none" class="spinner-border">
And Here's my jquery code
- $(document).ready(function () {
- $('#send-button').click(function () {
- $('#send-button').attr('disabled', true);
- $('#button-spinner').show();
- setTimeout(function () {
- $('#button-spinner').hide();
- }, 2000);
- });
- });

Sachin SinghRank #66 · 26.2K reputationPosted May 27, 2021, 4:00 AM EDT
Arnab MukherjeeRank #879 · 2.5K reputationPosted May 26, 2021, 4:47 PM EDT
Salman BegRank #284 · 8.8K reputationPosted May 27, 2021, 1:02 AM EDT
Hamza Shah86 reputationPosted May 27, 2021, 3:22 AM EDT
Hamza Shah86 reputationPosted May 27, 2021, 4:21 AM EDT