开发者

jQuery & asp.net - index rows with classes client-side

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜