Edit
, "TH" "THEAD". ! THEADAD TR. TR TH, THEAD, TD.
: tbody, thead tfoot tr . td th , .
, Element.update() , HTML javascript, toString (, Element). , "+", , , . toString :
new Element('thead').update(thead_amount.toString()
+ thead_pdf.toString()
+ thead_tags.toString()
+ thead_date.toString()
+ thead_options.toString());
script.aculo.us ( Prototype), Builder Element. , . :
var table = Builder.node('table', {
width: '100%',
cellpadding: '2',
cellspacing: '0',
border: '0'
});
var tbody = Builder.node('tbody'),
tr = Builder.node('tr', { className: 'header' }),
td = Builder.node('td', [Builder.node('strong', 'Category')]);
tr.appendChild(td);
tbody.appendChild(tr);
table.appendChild(tbody);
$('divCat').appendChild(table);
http://wiki.github.com/madrobby/scriptaculous/builder.