Home > Web Front-end > JS Tutorial > jqGrid gets column value

jqGrid gets column value

巴扎黑
Release: 2016-12-06 10:41:25
Original
1715 people have browsed it

var selectedIds = $("#gridTable").jqGrid("getGridParam", "selarrrow");

if (selectedIds.length != 1) {

//alert("Please select a piece of data for operation!" );

$.jBox.tip('Please select a piece of data to operate!');

return false;

}

var rowData = $("#gridTable").jqGrid('getRowData', selectedIds);

var vid = rowData.id;

var name="";

$.each(rowData, function(key, val) {

if(key=="product.productName"){

name=rowData[key];

}

// alert(rowData[key]);

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template