JQuery ile tablo değeri almak nasıl, koşmak PHP işlevi sonra tabloya sonucu append

0 Cevap php

1: Ben şu onclick gibi bir tablo yükleme ediyorum:

$(document).ready(function() { 
  $("#myTable").tablesorter(); 
    $("#ajax-append").click(function() { 
      $.get("get_data.php", function(html) { 
        $("#myTable tbody").append(html);              
        $("#myTable").trigger("update"); 
      }); 
    return false; 
  });         
}); 

2: aşağıdaki gibi tablo üç sütun doldurur:

<table id="myTable">             
  <thead>
    <tr> 
      <th class="header">header 1</th> 
      <th class="header">header 2</th> 
      <th class="header">header 3</th> 
    </tr> 
  </thead> 
  <tbody>  
    <tr>
      <td id="col1_1">value 1</td>
      <td id="col2_1">value 2</td>
      <td id="col3_1"></td>
    </tr>
    <tr>
      <td id="col1_2">value 1</td>
      <td id="col2_2">value 2</td>
      <td id="col3_2"></td>
    </tr>
  </tbody>
</table>

Vb ... (satır 100 adlı ...)

  1. Tablo yüklendikten sonra - Ben col1 değerini almak ve bir fonksiyon yani / get_result.php?data=col1 içine geçmek ve jQuery kullanarak ve gösteren tüm tablo için col3 içine koymak istiyorum her satır için bir yükleme gif ise fonksiyon çalışır ...

Herkes bana bunu başarmak nasıl başlayabilirsiniz. Teşekkürler!

0 Cevap