PDA

View Full Version : How to append child element to Ext.select() result?



JeaffreyGilbert
10 Nov 2010, 8:58 PM
I have this table structure:

<table class="x-toolbar-ct">
<tbody>
<tr>
<td>col1</td>
<td>col2</td>
</tr>
</tbody>
</table>
My incorrect code:

var row = Ext.select('.x-toolbar-ct').select('tbody').select('tr');
row.appendChild('<td>col3</td>');
So, how to append new <td> element? Thank you.