Having problems with a ticket being submitted multiple times?
This article will show you how to disable the Submit button after it has been click and change the text label to Submitting, please wait...
-
Make a backup copy of your existing index.php file.
-
Open file index.php in a plain text editor, such as Notepad.
-
Inside index.php find the first two occurrences of this code:
<input type="submit"
-
After this code add:
onclick="this.disabled=true;this.value='Sending, please wait...';this.form.submit();"
Remember, do this twice - the first two times you find code in step 3.The final code should look like this:
<input type="submit" onclick="this.disabled=true;this.value='Sending, please wait...';this.form.submit();"
-
Save changes, upload the index.php file to your server and test it.
That's it! Now, when your visitors click the "Submit" button when submitting a ticket, the button will be be disabled with the Sending, please wait message until the post is complete.
'IT-개발,DB' 카테고리의 다른 글
프로그래머로서 나의 발전 단계 (0) | 2019.12.18 |
---|---|
자바스크립트에서 ==., === (0) | 2019.06.16 |
COFFEESCRIPT vs JAVASCRIPT - 조건식 오퍼레이터 (0) | 2019.04.10 |
git 계정 변경 (0) | 2019.04.01 |
commit messages in Git, Redmine Sync (0) | 2019.04.01 |
댓글