I trying to get value from each row with <tr class="bill-row">
in datatable. so how do I set class="bill-row"
in datatables ? so I can call ech row with
var row = $(".bill-row");
row.each(function(i) {
data.bill_number.push($("[name='bill_number[]']", this).val());
data.service_charge.push($("[name='service_charge[]']", this).inputmask('unmaskedvalue'));
// data.water_usage.push($("[name='water_usage[]']", this).inputmask('unmaskedvalue'));
data.meteran_akhir_air.push($("[name='meteran_akhir_air[]']", this).inputmask('unmaskedvalue'));
data.meteran_akhir.push($("[name='meteran_akhir[]']", this).inputmask('unmaskedvalue'));
set class to datatable like this
<tr class="bill-row" role="row">
<td></td>
</tr>
default datatable
<tr role="row">
<td></td>
</tr>
here's is my datatable to set class for <tr>
but doesnt working
createdRow: function( row, data, dataIndex ) {
$(row).addClass('bill-row');
},