|
|
|
|
|
для: OLi
(21.03.2012 в 23:04)
| | Разобрался:
В цикле сделал так:
$('.tr_line').eq(j).find('td input').eq(3).val(data[j].win);
|
| |
|
|
|
|
|
|
|
Получил такой json:
0: {id:2, place:3, name:null, games:3, win:0, standoff:1, lose:2, goals:0, score:1}
1: {id:1, place:1, name:null, games:2, win:1, standoff:0, lose:0, goals:2, score:3}
Как теперь его выводить в js в цикле?
|
Пробовал так:
for (var j = 1; j < all; j++) {
var fullSet = $('.tr_line').last().html();
$('.tab2').append('<tr class="tr_line">'+fullSet+'</tr>');
$('.tr_line').eq(j-1).find('td input').eq(j-1).val(data['id'][j-1]);
}
|
| |
|
|
|
|