Utilizing jQuery .children...
var strHtml = $(dt.row(row_idx).child()).children().children().html();
...to pass in the following HTML:
<tbody>
<tr>
<td>Notes:</td>
<td>some info</td>
</tr>
<tr>
<td>Assistance Required:</td>
<td>Translation, writing and speaking capabilities </td>
</tr>
<tr>
<td>Unit:</td>
<td>not listed</td>
</tr>
</tbody>
How do I grab the label cells (<td>Notes:</td>, <td>Assistance Required:</td>, <td>Unit:</td>) and move to their next corresponding value cell to add a colspan property to the <td> and then return the finished html?
The result should look like...
<tbody>
<tr>
<td>Notes:</td>
<td colspan="12">some info</td>
</tr>
<tr>
<td>Assistance Required:</td>
<td colspan="12">Translation, writing and speaking capabilities </td>
</tr>
<tr>
<td>Unit:</td>
<td colspan="12">not listed</td>
</tr>
</tbody>