Seems you don't know what
<th>
and
<td>
html tags do...
As
documentation[
^] says a
<td>
tag defines a standard cell in an HTML table. A
<th>
is header cell.
So... if you want to merge 2 columns (cells) into single one, you have to remove
<th>
and
<td>
tags from your code. For example:
$('#services_schdulue thead').append(
"<th>one</th><th>two</th><th>three</th>"
);
$('#services_schdulue thead').append(
"<th>one</th><th>two and three</th>"
);
for (var i = 0; i < re.length; i++) {
if (re[i] !== null) {
$('#services_schdulue tbody').append(
'' + re[i][0] +
'' + re[i][1] +
'' + re[i][2] +
'');
}
for (var i = 0; i < re.length; i++) {
if (re[i] !== null) {
$('#services_schdulue tbody').append(
'' + re[i][0] +
'' + re[i][1] + ' ' + re[i][2] +
'');
}