I made this insert table row function. I need to get the values of p_iId, d_prijs, c_prijs, code, artikelNL into the table. How can I do this?
function insertTableRow ( p_iId, d_prijs, c_prijs, code, artikelNL )
{
var $id = $('.buttonbewerken[data-id='+p_iId+']');
var row = '<tr>';
row += '<td class="d_prijs ruimte">5427.00</td>';
row += '<td class="c_prijs ruimte">9999.99</td>';
row += '<td class="code ruimte">45t45tdfgr</td>';
row += '<td class="artikelnl ruimte">gdrge5t5</td>';
row += '<td><button data-id= class="buttonbewerken">bewerken</button></td>';
row += '</tr>';
$('#result').prepend(row);
}