I have this table and I want to be able to add rows to it dynamically using Jquery but I'm falling so far, I already have a loop in place for the added rows, I just need the script that goes with it. (I'm using a MVC pattern design)
My code for the loop :
<?php
$viewTableRows = array_merge($device->tableRows, array(new tableRow()));
foreach ($viewTableRows as $i => $row) {
?>
an example of a td:
<td>
<?php echo $htmlRenderer->getProperHtmlForInputText(
SheetTableOperator::SHEET_POSITION . "[$i]",
$row->position);
?>
</td>
