Home  >  Article  >  Web Front-end  >  JQuery error Uncaught TypeError: Illegal invocation processing method_jquery

JQuery error Uncaught TypeError: Illegal invocation processing method_jquery

WBOY
WBOYOriginal
2016-05-16 16:09:344239browse

Jquery implements Ajax asynchronous submission and reports an error "Uncaught TypeError: Illegal invocation", as shown below:

Troubleshooting found that the error is here:

Copy code The code is as follows:

data:{"search_value":$('input[name=search_value]'),"order_source":buyerType,"order_status":orderType}

$('input[name=search_value]') is an object rather than a value. The correct way to write it is $('input[name=search_value]').val()

The above is all the content described in this article, I hope you all like it.

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