SonOfMephisto
New Member
I have a flexigrid :\[code\]$('#viewExhibitsGrid').flexigrid({ url: url, dataType: 'json', method: 'get', colModel: [ { display: '<input type="checkbox" class="exhibitCheckBox" id="checkAllExhibits" />', name: 'checkBox', width: 20, sortable: false, align: 'center', process: showDescription }, { display: 'Actions', name: 'actionBtns', width: 60, sortable: false, align: 'center', process: showDescription }, { display: 'ID', name: 'ExhibitID', width: 60, sortable: true, hide: true, align: 'center', process: showDescription }, { display: 'Item #', name: 'ItemNumber', width: 120, sortable: true, align: 'center', process: showDescription }, { display: 'Seize Date', name: 'SeizeDate', width: 80, sortable: true, align: 'center', process: showDescription }, { display: 'Seized By', name: 'i.LName, i.FName', width: 70, sortable: true, align: 'center', process: showDescription }, { display: 'Seized Location', name: 'Location', width: 70, sortable: true, align: 'center', process: showDescription }, { display: 'Authority', name: 'SzAuthority', width: 70, sortable: true, align: 'center', process: showDescription }, { display: 'Disposed', name: 'StoredLocally', width: 70, sortable: true, align: 'center', process: showDescription }, { display: 'Bag Number', name: 'BagNumber', width: 70, sortable: true, align: 'center', process: showDescription }, { display: 'Box Number', name: 'BoxNumber', width: 70, sortable: true, align: 'center', process: showDescription }, { display: 'Description', name: 'ExhDesc', width: 70, sortable: true, align: 'center', process: showDescription, hide: true } ],\[/code\]I am trying to obtain the "ItemNumber" column value. (the value's format is : "number-number-number-number" ex: "1-1-1-1"). I am trying to obtain it for every checkbox checked. This is my checkbox function that finds all the id's for every selected item:\[code\]function getSelectedExhibitIDs() { var selectedExhibitsList = new Array; var exhibitNumber = new Array; var i = 0; $('.exhibitCheckBox:checked').each(function () { if ($(this)[0].id !== "checkAllExhibits") { selectedExhibitsList = $(this)[0].id.split('_')[1]; ++i; } }); return selectedExhibitsList; }\[/code\]I've tried to incorporate it using the function above but I feel like I am miserably wrong. This is my functions attempting to grab the item number for every checked check box:\[code\]function getExhibitNum(){ var exhibitNumber = new Array; var i = 0; //$(this).attr('abbr') === 'ExhibitID' $('.exhibitCheckBox:checked').each(function () { if ($(this)[0].id !== "checkAllExhibits" && $(this).attr('abbr') === 'ItemNumber') { exhibitNumber = $(this).children(':first').html(); ++i; } }); return exhibitNumber; }\[/code\]