I have below code that get values from a grid. Instead of printing the values, the grid is printing data in below object format. How to print values?
[object Object], [object Object], [object Object], [object Object], [object Object]
CODE:
$(document).ready(function () {
$("#check").click(function(){
var rows = $('#jqxgrid').jqxGrid('getrows');
alert(rows);
});
});
A simple way is to use
i.e.
Else, you would need to manually traverse the object’s properties and print them accordingly. Give more details about input and desired output for an example.
An example in interactive Node.js: