I keep getting a complier error with the following JS object.
Is this allowed/if so wheres my syntax wrong?
var optionData = {
{ option:'', country:{} },
{ option:'', country:{} }
}
Thanks.
It should be an array:
var optionData = [
{ option: '', country: {} },
{ option: '', country: {} }
];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With