JavaScript
Article
By Sam Deering

jQuery set value on specific table cell

By Sam Deering

Helper JS function which sets the price on a specified table cell based on the table id, row id and column number.

function setRowPrice(tableId, rowId, colNum, newValue)
{
    $('#'+table).find('tr#'+rowId).find('td:eq(colNum)').html(newValue);
};
Recommended
Sponsors
Get the latest in JavaScript, once a week, for free.