I know how to append a new row into a table using jquery. The simpliest way to do that is using tags <tr>
:
function insertRow(data, reportNumber) { var guid = $(data).find('ID').text(); var portId = $(data).find('PortID').text(); var status = $(data).find('Status').text(); $('#gvwCashRegisterList').append( "<tr class=\"cashRegisterRow\"><td><input type=\"checkbox\" value=\"" + guid + "\"/></td><td>" + new Date().toLocaleString() + "</td><td>" + guid + "</td> <td></td><td>" + reportNumber + "</td><td>" + portId + "</td><td>" + status + "</td><td><a href=\"CashRegisterList.aspx\">Select</a></td></tr>" ); }
Is there any known way to do that without using the tags <tr>
? For example : jQuery functions, plugins or libraries?