Few days ago, I created a form for submitting user information.
It required to upload lot of images. which actually takes time.
Since, it wasn’t a ajax form, I was unable to add any indication that “form is submitting”
Adding Progress element using following method solve 2 problems:
- Help to rid of form Resubmission
- Giving indication to user about form submission
So, after tinkering little time, I found a solution. which is below
html part
just giving a id to the form
|
|
js part
Make a function which will add a progress bar after the form upon calling
|
|
I have added basic css for make it text-align center
Calling addProgressInPostForm
function and passing form id
|
|
If you want to select all forms which has post submission method
|
|