samedi 21 avril 2018

here i am creating table row by giving dynamically data for table data . But i didn't get the data by their id

here i am creating table row by giving dynamically data for table data . But i didn't get the data by their id

if(xmlhttp.status == 200)
                        {
                          var adminList = xmlhttp.responseJSON;
                          var outputStr = '';
                          for(var i = 0; i < adminList.length; i++)
                          {
                            outputStr += '<tr><td id="tdusername">' + adminList[i].username + '</td><td id="tdfullname">' + adminList[i].fullName + '</td><td id="tdemail">'+ adminList[i].email+'</td><td id="tdedit">'+adminList[i].id+'</td></tr>';
                          }
                          $('#admin_list tbody').html(outputStr);
            else
                    {
                      $('#msg').html(xmlhttp.status + ": " + xmlhttp.statusText);
                    }



Aucun commentaire:

Enregistrer un commentaire