In ASP.NET gridviews we can create a template and insert a named (id) control. This way we can iterate rows after a POST. But, is there a way to index rows with say, classes so that we can group rows together via index?
This way I can use jquery to pull a row with a particular quality, like say
"row1CheckBox == checked"
therefore gather all columns with class = rowIndex1.
I’m a little hesitant to use code behind with ASP.NET to name the classes because it has a tendency to put class names on <span> instead of the templated object, e.g. the <textbox> within the <span>.
I hope this question is clear. Has anyone done this successfully?
$(“.row1CheckBox :checked”) should return all classes with the Checked attributed. I don’t think that’s what you’re looking to do though. Perhaps some clarification?
Checked Selector Documentation