开发者

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

开发者 https://www.devze.com 2023-03-08 10:33 出处:网络
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 to

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

精彩评论

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

关注公众号