Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setTimeout(function(){
- jQuery(function(){
- if(jQuery(".pagination").is(":visible")){
- jQuery("th:nth-child(2)").after("<th>Descrizione</th>");
- jQuery("td:nth-child(2)").each(function(index){
- let row = jQuery(this); //Oggetto attuale, index รจ uguale a indice numerico da 0
- let reference = row.text();
- jQuery.ajax({
- type: "POST",
- url: "MIOURL",
- data: "reference=" + reference,
- dataType: "html",
- success: function(msg){
- row.after("<td>"+msg+"</td>");
- },
- error: function(){
- console.log("Chiamata fallita, si prega di riprovare...");
- }
- });
- });
- }
- });
- }, 4000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement