"Invalid shorthand property initializer" - jQuery
See original GitHub issueGetting this error on the line onComplete={sendDataToServer}

Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Invalid shorthand property initializer - javascript - Stack Overflow
Because it's an object, the way to assign value to its properties is using : . Change the = to : to fix...
Read more >JavaScript SyntaxError: Invalid shorthand property initializer
To fix JavaScript SyntaxError: Invalid shorthand property initializer, correct the value assignments made to properties of objects.
Read more >Invalid shorthand property initializer Error in JS | bobbyhadz
The "Invalid shorthand property initializer" error occurs when we use an equal sign instead of a colon to separate the values in an...
Read more >Invalid Shorthand Property Initializer - Fix! - YouTube
In this quick video I will show you how to fix the " Invalid Shorthand Property Initializer " error in your JavaScript code....
Read more >Resolved - Uncaught SyntaxError: Invalid shorthand property ...
"Uncaught SyntaxError: Invalid shorthand property initializer" - This is a common error we get while creating JavaScript object.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@mellogarrett , no reason in brackets. Fixed it. Thank you.
Thanks for the comment! That fixed it.
The jQuery documentation on the front page is wrong.