Home >Web Front-end >JS Tutorial >Solve jquery submit() submission form prompt: f[s] is not a function_jquery

Solve jquery submit() submission form prompt: f[s] is not a function_jquery

WBOY
WBOYOriginal
2016-05-16 17:43:091080browse

jquery submit() cannot submit the form
error: f[s] is not a function,

js submit() cannot submit the form
error: document.getElementByIdx_x(...).submit is not a function

These two errors are very frustrating. There are no syntax errors. How can I report an error?
Because I have never encountered this before, this time I was modifying someone else’s code. When I looked back at the code, I relied on the original button’s name="submit" and deleted it to be able to submit the form normally. .

Why? It should be an Input of type="submit" that will affect form submission! I think maybe the name="submit" system will think that this is the real submit button, but clicking it will not submit! ? Although I still don’t know how it works, everyone should pay attention to it once they know there is this bug.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn