table's tag archives

Using Jquery to insert a row in parent window table

If we have a table in parent widow: [code] <table id="demo_table"> <tbody> <tr> <td>1</td> <td>a</td> </tr> </tbody> </table> [/code] Now, we want use jquery to insert a row to this table from a frame. We can write jquery: [code] parent.$('#demo_table').last().append('<tr><td>2</td><td>b</td></tr>'); [/code] or this way [code] parent.$('#demo_tabl...