Home > Web Front-end > JS Tutorial > body text

jqGrid gets column value

巴扎黑
Release: 2016-11-25 10:58:27
Original
1426 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!