ajaxの応答に従ってテーブルを更新しようとしています。私の更新は、テーブルの最初の行として挿入する必要があり<tbody>ます。私のコーディングでは、ページが読み込まれた後にデータを挿入すると、テーブルでこれが発生します。私の問題は、テーブルに挿入するページを更新せずにデータを再度挿入し、2 行目に<tbody>挿入し、別のデータを 3 行目に挿入することです。
しかし、ページを更新または再読み込みすると、テーブルのデータが正しい順序で調整されます。この問題を解決する方法を教えてもらえますか?
これはこれまでの私のコードです:
$.ajax({
    type: "POST", // HTTP method POST or GET
    url: "process.php", //Where to make Ajax calls
    //dataType:"text", // Data type, HTML, json etc.
    dataType: 'html',
    data: {
        name: $('#name').val(),
        address: $('#address').val(),
        city: $('#city').val()
    },
    success: function(data) {
        $('#manage_user table > tbody:first').append(data);
        //alert(data);
    },
    error: function(xhr, ajaxOptions, thrownError) {
        //On error, we alert user
        alert(thrownError);
    },
    complete: function() {
        //alert('update success'); 
    }
});
更新:これは私のテーブルの HTML です
<table>
  <tr>
    <th><input type='checkbox' class='selectAll' name='selectAll' value='' /> Name</th>
    <th>Address</th>
    <th>City</th>
    <th>Edit</th>
    <th>Delete</th>
  </tr>
  <tbody>
     // -------- this is the place I need to insert data 
     <tr>
      <td><input type='checkbox' name='' value='' class='' />  sdfsdfs</td>
      <td>dsfs</td>
      <td>dsfdsf</td>
      <td><span class='edit_ico'></span></td>
      <td><span class='delete_ico'></span></td>
     </tr>
     <tr>
      <td><input type='checkbox' name='' value='' class='' />  aaaaaaa</td>
      <td>dfsdf</td>
      <td>dsfsf</td>
      <td><span class='edit_ico'></span></td>
      <td><span class='delete_ico'></span></td>
     </tr>
 </tbody>
</table>