I have a submit button at the end of the form.
I have added the following condition to the submit button:
onClick="this.disabled=true; this.value='Sending…'; this.form.submit();"
But when it moves to the next page, the parameters did not pass and null values are passed.
The disabled attribute is a boolean attribute. When present, it specifies that the button should be disabled. A disabled button is unusable and un-clickable. The disabled attribute can be set to keep a user from clicking on the button until some other condition has been met (like selecting a checkbox, etc.).
You should first submit your form and then change the value of your submit:
onClick="this.form.submit(); this.disabled=true; this.value='Sending…'; "
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With