Please excuse formatting on this but we can not connect to and post to any public sites so this is posted from my phone.
We have an ASP.Net gridview with checkboxes. We have logic that will look for what values are checked or not. The only issue we have is that we have one case that opens another window with a new page based on those check boxes. The user might have checked more check boxes since the last post back so we are going through the gridview to check that page of data and get checked values.
I can get the checked boxes with no problems. The problem is I am not sure how to find the value from another column.
I can not post much code, but I did get permission to post this much.
function myfunctionname (gridviewid){
var myvalue = "";
$('#' + gridviewid + ' input[type=checkbox]:checked').each(function (index){
myvalue = myvalue + $(this).IDontKnowWhatINeedHere
});
}
I have tried .find(), .parente(), .name() and many other things. Basically I always have undefined, a jQuery function, or an error no matter what I have tried.
What I am trying get for is, since I have the correct checkbox, I want to get the parent row and get the value from a label generated as a span in another column.
Anyone have any ideas where to go from here to get to my next step?
Thanks
.parent()should give your the TD and then just traverse siblings, e.g..parent().next()- should give you the next cell