Please help me to understand! Not smart enough to finish the job.Almost ready time to JsFiddle
- Sending form data with a hidden technical information field.
- Block-message about successful sending of message.
- Check input text for data, if empty - the submit button is inactive.
- The submit button when pressed becomes inactive so as not poked a thousand times.
1) How to temporarily disable button (disable) and change the name to "Sent" on the submit button, say 3 seconds, by using onclick="script" inside the button?
Because on the page there are several similar buttons and afraid all at once will be disconnected if it is specified in General script.
2) How to register another script in the onclick on the submit, so she prescribed a specific value in the technical text hidden field?
Because when you send collect these technical fields in order to distinguish which form has been sent.
3) How to Ajax submit a form at the end of the script to smoothly hide the form and instead open the message?
Just after 1-2 seconds until the button is inactive. I understand there is removeAttr and attr classes to the form.