EDIT : Included more details
Hi I have a Object Array in jQuery which looks like this,
My question is how can I delete a record from that object array by columnheader
as parameter. I know there is this
var result = $.grep(records, function(e){ return e.columnheader == currentheader; });
but grep
i only used to check if there's a matching data based on currentheader
that i passed in. What if I want to delete?
I want to delete a record on the fly as I am looping in that object array, lets I have. data
contains all object arrays that is shown in the image.
$.each(data, function(key,value) {
// Let's say I want the code here to delete a record in the current object array that I'm looping into.
});
Thanks