22
Note the correct way to create multiple buttons on the fly:
'buttons', [
{
text: "Download",
click: function () {...}
},
{
text: "Not now",
click: function () {...}
}
]
Here is an example using the non-array style: See this jsFiddle for an example.