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
Post a Comment