jquery - Javascript fails while trying to declare nested object -


i trying build jquery based simple mail template system. nested array supposed like:

templates[1] = {                     "name":"product damage claim",                     "def":{                         {'customer name?','delivery_name',1},                         {'date information should provided customer?','',1},                         {'order id','orders_id',0}                     },                     "tpl":'mail content goes here' }; 

now if write above, javascript fails. seems, doing wrong in defining def object, idea what?

as def contains list of values, should array of arrays

templates[1] = {     "name": "product damage claim",         "def": [         ['customer name?', 'delivery_name', 1],         ['date information should provided customer?', '', 1],         ['order id', 'orders_id', 0]     ],         "tpl": 'mail content goes here' }; 

Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -