How to disable button in Jquery ?

Its a very simple problem but sometime we forget how to do.

Just for the reminder bookmark this and use it.

$("#mybtn").addClass('disabled');
<button id="mybtn">Disable me</button>

This is how we can simply disable button.

Checkout this example.

Thanks for visiting

Author Profile

PREM KUMAR
PREM KUMAR
Tech Lover , Open Src Dev , Dotnet Core, Ionic, Xamarin, Node, Angular2, Python, Opencv, AI, ML, Robotics, SignalR, Iot, Love Music, Cooking, Girls, Innovation.
Like
Like Love Haha Wow Sad Angry
Summary
Article Name
How to disable button in Jquery ?
Description
Its a very simple problem but sometime we forget how to do. Just for the reminder bookmark this and use it...
Author
Publisher
pkworlz

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.