not sure if there is a beter way to pass a specific field value to a JS function called SubmitInvite, but here is what i use to send a list of emails from a checked list in the grid when selecting a submit button
$(‘.invite-btn’).on(‘click’, function(){
var cells = $(‘#jqxgrid’).jqxGrid(‘getselectedrowindexes’);
var labels = “”;
for (var i = 0; i < cells.length; i++) {
var rowID = $(‘#jqxgrid’).jqxGrid(‘getrowid’, i);
var data = $(‘#jqxgrid’).jqxGrid(‘getrowdatabyid’, rowID);
labels += data.accountEmail;
if (i < cells.length – 1) labels += “, “;
}
//alert(labels);
submitInvite(labels);
});