Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disabling submit button after clicking to avoid multiple posts

  • @ericreynolds007

    Participant

    Occasionally, one of our site members will click a “Post Topic” or other submit button multiple times out of the frustration that nothing is happening (due to slow server or the member’s slow connection). Unfortunately, Buddypress outputs multiples of the same post and our members are getting multiple notifications.

    To avoid redundant posting, is there a plugin that disables a submit button after a user clicks on it once?

    Any help appreciated.

    Eric

Viewing 2 replies - 1 through 2 (of 2 total)
  • @modemlooper

    Moderator

    You can use jquery. This is just an example.

    jQuery(‘input:submit’).click(function(){
    jQuery(‘input:submit’).attr(“disabled”, true);
    });

    @ericreynolds007

    Participant

    Nice. Thanks Modemlooper

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disabling submit button after clicking to avoid multiple posts’ is closed to new replies.
Skip to toolbar