Home > Web Front-end > JS Tutorial > body text

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

WBOY
Release: 2016-05-16 17:43:09
Original
1010 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!