[jQuery] Re: Add Checkboxes in a table.

2009-01-22 Thread ryan.joyce...@googlemail.com

maybe try .append-ing stuff to the table?

$('table#my_table').append( stuff to append goes here )

On Jan 22, 3:42 pm, Andy adharb...@gmail.com wrote:
 I need to be able to dynamically add a new rows to a table and add
 elements such as check boxes, plain text and hyperlinks.  I cannot
 find any examples of this.  Would anyone have any samples or a good
 url?

 Thanks!


[jQuery] Re: Add Checkboxes in a table.

2009-01-22 Thread Kean

Let me guess, you wanted to add a new row and it is almost identical
to the row before it.

This will probably work.

$row = $('table tr:last-child').clone();
$row.appendTo('table');


On Jan 22, 7:42 am, Andy adharb...@gmail.com wrote:
 I need to be able to dynamically add a new rows to a table and add
 elements such as check boxes, plain text and hyperlinks.  I cannot
 find any examples of this.  Would anyone have any samples or a good
 url?

 Thanks!