$service_table = '<table id = " service" class = "service_application" width = "100%" border="1">
<tr>
<th>First Header</th>
<th>Second</th>
<th>Third</th>
<th>Fourth</th>
<th>Fifth</th>
<th>Sixth</th>
<th>Seventh</th>
<th>Eigth</th>
<th>Action</th>
</tr>'.
$_SESSION['service_table'].'
</table><br>';
if($(this).closest('table').attr('id')=="service") {
var inline_first = $(this).closest('tr').find('td').eq(0).html();
var inline_second = $(this).closest('tr').find('td').eq(1).html();
var inline_third = $(this).closest('tr').find('td').eq(2).html();
// etc..
$(this).closest('tr').find('td').eq(0).empty();
$(this).closest('tr').find('td').eq(1).empty();
$(this).closest('tr').find('td').eq(2).empty();
// etc..
$(this).closest('tr').find('td').eq(0).attr("contenteditable","false");
$(this).closest('tr').find('td').eq(1).attr("contenteditable","false");
$(this).closest('tr').find('td').eq(2).attr("contenteditable","false");
// etc..
$(this).closest('tr').find('td').eq(0).prepend(" <input id=id_inline_first type='text' /> ");
$(this).closest('tr').find('td').eq(1).prepend(" <input id=id_inline_second type='text' /> ") ;
$(this).closest('tr').find('td').eq(2).prepend(" <input id=id_inline_third type='text' /> ");
// etc…
[/CODE]
Assuming we want to use straight JQuery and not an extension, should we be coding it differently? (I'm just modifying existing code from a prior developer) Either way, how can we guarantee that a Jquery-modified Dom will retain the original CSS properties of the existing div container? We're only modifying that specific table, not the div.