multiple columns Concatenation in single column
multiple columns Concatenation in single column
suser
Posts: 68Questions: 18Answers: 0
Hi
i try to create table through jquery now i successfully display table and data
```
if (re.length > 0) {
$("#services_schdulue").append
$('#services_schdulue thead').append(
"<tr><th>Concatenate</th><th>No</th><th>Status</th><th>Speed</th><th>Reference</th></tr>"
);
for (var i = 0; i < re.length; i++) {
if (re[i] !== null) {
$('#services_schdulue tbody').append('<tr><td>' +con +
'</td><td>' + re[i][1] +
'</td><td>' + re[i][2] +
'</td><td>' + re[i][3] +
'</td><td>' + re[i][4] +
'</td></tr>');
}
}
}
var myTable = $('#services_schdulue').DataTable();
```
I try to concatenate NO , Status and Speed column .. like this
var con = re[i][1].concat(re[i][2, re[i][3]);
but this show undefined result
how i do that ?
check this js fiddle
This discussion has been closed.