Populate html table on jQuery success event

后端 未结 4 548
囚心锁ツ
囚心锁ツ 2020-12-31 10:27

Here\'s my problem.

I have this html table:

");
    });

More information can be found here: http://api.jquery.com/jQuery.each/

提交回复
热议问题
4条回答
  •  孤城傲影
    2020-12-31 10:59

    You could try this:

        var table = $("#table tbody");
        $.each(data, function(idx, elem){
            table.append("
"+elem.username+""+elem.name+" "+elem.lastname+"