Because your syntax for defining property values for an object literal is incorrect:
[
{
label:"c++",
value: 1 /* Be sure to use ":" and not "=" here */
}
]
Use :
instead of =
.
A tool like JSLint or JSHint will help you find simple errors like this.
Example: http://jsfiddle.net/92Qjw/