我想將具有相同行的行組合到一列中。試圖將具有3列相同和不同列的行組合成一行javascript jquery
假如我個是ID,名稱
假設我有像
1 ram
1 raj
那麼我想輸出
1 ram,raj
ram,raj
應顯示在文本區域
上午使用YouTube API獲取數據
<table class="table table-bordered" style="width:90%">
<thead>
<tr>
<th>id</th>
<th>Name</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>ram</td>
<tr>
<tr>
<td>1</td>
<td>raj</td>
<tr>
粘貼你的代碼你以前嘗試過...... – yash
輸入數據格式如何? – motanelu
@yash我無法理解如何組合,因爲數據不是來自mysql,如果有任何線索,我可以嘗試 –