Adding rows with images

Adding rows with images

davedarndavedarn Posts: 7Questions: 4Answers: 1

I have tables that contain data and images for delete modify etc and this works fine
<tr><td>$number</td><td>$desc</td>
<td>$dateuk</td>
<td>$os_dateuk</td>
<td>$items</td>
<td>$priority</td>
<td>$status</td>
<td>$category</td>
<td>$source</td>
<td class='option' title='Valid'><img src='images\Valid.png'></td>
<td class='option' title='List'><img src='images\Delivery.png'></td>
<td class='option' title='Print'><img src='images\Print.png'></td>
<td class='option' title='View'><img src='images\View.png'></td>
<td class='option' title='Modify'><img src='images\Modify.png'></td>
<td class='option' title='$title'><img src=images\Trash.png></td>

But when I try and add a new row nothing appears. I have tried several methods and check in the knowledge base but nothing helps.

$('#header_list').DataTable().row.add( [
number,
$("#desc").val().substr(0,40),
ukDate($("#date").val(),false),
ukDate($("#ros_date").val(),false),
'0',
$("#priority").val(),
status,
$("#category").val(),
'type',
"<img class='my_option' title='Validate' src='images\Valid.png'>",
"<img class='my_option' title='Validate' src='images\Delivery.png'>",
"<img class='my_option' title='Validate' src='images\Print.png'>",
"<img class='my_option' title='Validate' src='images\View.png'>",
"<img class='my_option' title='Validate' src='images\Modify.png'>",
"<img class='my_option' title='Validate' src='images\Trash.png'>"
]).draw();

If anyone has any ideas they would be much appreciated.

This discussion has been closed.