How to Disable Submit Button -not multiple click/submission

Discussion in 'JavaScript' started by poyor7, May 10, 2006.

  1. #1
    Hi,

    I've test.php page with submit button and process/display also in the same page(test.php).

    My problem right now is how to disable submit button using js after the test.page been submitted.


    The button disable after the submission not during the submission

    regards
    poyor7
     
    poyor7, May 10, 2006 IP
  2. Slapyo

    Slapyo Well-Known Member

    Messages:
    266
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #2
    Try this:
    <input type="button" value="Submit" onclick="this.form.submit();this.disabled=true;this.value='Processing'" />
    Code (markup):
     
    Slapyo, May 20, 2006 IP