TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Hamza Shah
NA
87
22.9k
Show spinner loader on submit button in form with click
May 26 2021 8:33 PM
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 id=
"send-button"
class
=
"btn btn-primary form-side__btn"
type=
"submit"
>Send
<div id=
"button-spinner"
style=
"margin-left: 10px; width: 15px; height: 15px; display: none"
class
=
"spinner-border"
></div>
</button>
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);
});
});
Reply
Answers (
5
)
how can I sync azure sql DB with sharepoint list using azure function
Get Player IDs and UserId form OneSignal.