Home  >  Article  >  Web Front-end  >  jqGrid gets column value

jqGrid gets column value

巴扎黑
巴扎黑Original
2016-12-06 10:41:251684browse

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]);

Statement:
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