I am trying to implement the following functionality to add more rows
but I am having a hard time figuring out how to to make the javascript call
<button onclick="buildTable(?????)"><i class="glyphicon glyphicon-plus"></i></button>
The current number of rows is stored in a PHP variable $rows which was passed in on the previous buildTable(1) call
I need to add $rows to the value from the input box below (the lower '8' as seen below)
<input type="number" placeholder="1" name="moreRows">
How can I add $rows to moreRows and pass it in to the call?
