ho to add new row with html content inside ?

ho to add new row with html content inside ?

yarekyarek Posts: 5Questions: 0Answers: 0
edited November 2013 in General
Hello,
I can add new content with that function.

$('#tableRooms').dataTable().fnAddData( [aroom.roomName, aroom.roomNumber] );

But I want some to contain images (or HTML): how can I do that ?

Replies

  • zorbakanzorbakan Posts: 9Questions: 0Answers: 0
    edited November 2013
    Just put html on the array elements.

    i.e.
    $('#tableRooms').dataTable().fnAddData( [''+aroom.roomName+'',
    ''+aroom.roomNumber+'',
    '
This discussion has been closed.