I need to provide users ability to edit within table using double click. For this I have the following code:
I create a table within div as follows: "MDTABLE" is id of div:
$("#MDTABLE").html(''.concat(
'<table style="text-align: center; background-color: white"">',
'<tr>',
'<th>MONDAY</th>',
'<th>TUESDAY</th>',
'<th>WEDNESDAY</th>',
'<th>THURSDAY</th>',
'<th>FRIDAY</th>',
'<th>ENSURE</th>',
'</tr>',
'<tr>',
'<td>'+ meminfo.MON +'</td>',
'<td>'+ meminfo.TUE +'</td>',
'<td>'+ meminfo.WED +'</td>',
'<td>'+ meminfo.THU +'</td>',
'<td>'+ meminfo.FRI +'</td>',
'<td>'+ meminfo.ENS +'</td>',
'</tr>',
'</table>'
));
The problem is that the function is not triggered when the table is contained within a div. Works great when not in div.
Obviously I do not have the correct syntax to access the td. I've tried a number of combos but not h it upon the correct one y et.