Hi Friends, In this article I am going to explain how we can make submit button disabled by jQuery. I need this functionality in one of my project, In which I have disable submit button on click of submit button, So no one can click on that button again and so form can submit smoothly. So I have searched about it on internet and finally found it which worked for me easily for all browser.
$('#formid').submit(function(){ $('input[type=submit]', this).attr('disabled', 'disabled'); });
Above is code by which we can make submit button disabled of form which have id ‘formid’ when submit button clicked.
I hope this post helpful for someone. If you have any question then you can ask me anytime or post it in comment.
Also I am WordPress Developer, Freelance PHP Developer having more than 3 years of experience, So if you want to do any projects then you can contact me.
Hostgator Hosting in 1 Cent Coupon Code – “1CENTHECOUPON” (Without Quotes).