[英]Uncaught Error: Syntax error, unrecognized expression in jQuery
I have a jQuery code block, like this: http://jsfiddle.net/3fLk5fag/ 我有一个jQuery代码块,如下所示: http : //jsfiddle.net/3fLk5fag/
But when I click to generate
button, getting this error: Uncaught Error: Syntax error, unrecognized expression: [name=ORDER_PNAME[]]
但是,当我单击
generate
按钮时,出现以下错误:未捕获的错误:语法错误,无法识别的表达式: [name=ORDER_PNAME[]]
Before inputs has no errors. 输入之前没有错误。
Whats the problem? 有什么问题? Thanks.
谢谢。
You'll have to quote that name: 您必须引用该名称:
[name='ORDER_PNAME[]']
Those brackets ( [ ]
) are what are causing the problem. 这些括号(
[ ]
)是引起问题的原因。
Your fiddle also has problems with a misplaced console.log(value)
, and a missing library for that md5 hashing. 你的小提琴也有一个错误的问题,就是放错了
console.log(value)
,并且缺少了用于md5哈希的库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.