首页 > 解决方案 > call php function inside jquery

问题描述

$.each(data, function (rowNumber, rowData) {

    var row = $('<tr>');

    row.append($('<td>', {
        'html': '*HERE*'
    }));

        $('#js-lobby-table').append(row);
    });

    state = data;
};

am I need to call the rowData and the PHP function in the HERE I don't know how to combine this PHP function is getName I have tried this unsuccessfully: 'html': 'rowData['UID']' sample of data is UID

标签: javascriptphpjquery

解决方案


推荐阅读