Submit button gives JavaScript error
-
There is an error in the JavaScript when a submit
buttonHTML tag is used. This occurs at the point a file upload is completed and the submit button switches from disabled to not disabled.This JavaScript/jQuery should refer to either the first submit button or input, rather than just the (old style) input:
form.querySelector('input[type="submit"]').removeAttribute('disabled');You can alter this to be something like this for wider support:
form.querySelector('button[type="submit"],input[type="submit"]').removeAttribute('disabled');I haven’t checked elsewhere in the script, but further references to the submit button may need to be altered.
The page I need help with: [log in to see the link]
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
The topic ‘Submit button gives JavaScript error’ is closed to new replies.