使用Javascript / JQuery从上一行的单元格中获取值

时间:2015-08-27 12:36:44

标签: javascript jquery html

我有一个Bootstrap表,当您单击右侧单元格时,会删除一个额外的行和单元格,链接到单独的HTML文件。我需要根据单击的行的值动态加载数据。见下面的屏幕截图:

enter image description here

我将我需要的值作为参数传递到链接的HTML文件中,但我还需要将“访问”号码传递给HTML文件,但我不确定如何动态提取它。

该表是使用此JS脚本动态生成的

function buildTable($el, cells, rows) {
                $el.bootstrapTable({
                    columns: $('#VisitListTable').bootstrapTable('getOptions', null).columns,
                    detailView: cells > 1,
                    url: dataurl,
                    responseHandler: responseHandler,
                    pagination: true,
                    detailView: true,
                    detailFormatter: detailFormatter,
                    paginationVAlign: "both"
                });
            }

但它输出的HTML在这里是一个小提琴:

http://jsfiddle.net/W3R3W0LF666/wr0bgs0g/

这是'访问'号码,我需要能够提取到我可以使用的变量,当我需要时,是否有人知道我如何能够提取它以便我使用另一个换一排?

0 个答案:

没有答案