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 SinghPosted May 27, 2021, 8:00 AM
Hamza ShahPosted May 27, 2021, 8:21 AM
Hamza ShahPosted May 27, 2021, 7:22 AM
Salman BegPosted May 27, 2021, 5:02 AM
Arnab MukherjeePosted May 26, 2021, 8:47 PM