I'm adding a table row like the following:
- var newID = 'proj_assoc_' + $pnum;
- var $newTr = $("<tr></tr>");
- $newTr.attr( 'id', newID );
- $newTr.html( $output );
- $('#ti_associated_project_numbers_table').append($newTr);
($output is html defined above that)
Works fine for adding it to the table.
My code for removing a row does not work. Here's that code:
- var $row = $( '#proj_assoc_' + $pnum );
- if ( $row.length>0 ) {
- $row.remove();
- }
Can anybody see what's wrong?