Tengo que crear un array en java script, de tal forma que este quede asi:
Código HTML:
var doubleEliminationData = { teams : [ ["Team 1", "Team 2"], ["Team 3", "Team 4"] ], results : [[ [[1,2], [3,4]], [[5,6]] ], [[[7,8]], [[9,10]]], [[[1,12], [13,14]], [[15,16]] ]] }
Código HTML:
var doubleEliminationData = new Object(); var teams = new Array(); teams.Push("Team1"); teams.Push("Team2"); doubleEliminationData.teams = teams;
Muchas gracias, saludos ¡¡¡