I have a jQuery code block, like this: http://jsfiddle.net/3fLk5fag/
But when I click to generate
button, getting this error: Uncaught Error: Syntax error, unrecognized expression: [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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.