Unable to disable double-click on “Post Update”.
-
Hello,
I’ve been testing different ways to disable the “Post Update” button under the Profile/Activity page after it has been clicked once. This is for situations where someone is impatient and clicks that button multiple-times, which would result in several re-posts of the same text.
I can’t seriously be the first one with this question. Anything that can factually resolve this problem?
I’ve tried this: https://wordpress.org/support/topic/how-to-prevent-double-form-submission First suggestions didn’t work. Second method, makes the “Post Update” button disappear entirely unless the page is refreshed by the user.
This didn’t work either:
jQuery('input:submit').click(function(){ jQuery('input:submit').attr("disabled", true); });
Taken from: https://buddypress.org/support/topic/disabling-submit-button-after-clicking-to-avoid-multiple-posts/
I am at my wits’ end on this. I’d absolutely appreciate any help with it. Thanks!
• WP: 4.5.3
• BP: 2.6.1.1
• Theme: Spacious (child theme); Reproduced the issue in Twenty Fifteen
• Site not accessible to the public yet.
• PHP 5.5.37
- You must be logged in to reply to this topic.