开发者

Loop through gridview rows and access each row's element by jquery

suppose i have gridview 开发者_如何学Goand having few rows. each rows have checkbox,textbox,combo in each column. how can i loop through gridview using jquery and access each elements in rows in loop for collection the value at client side by jquery. help me with sample jquery code.

thanks


If your elements have unique names you can simply use the serialize function. This will create a parameter string like:

"textbox1=value1&etc" for <input type="text" name="textbox1" value="value1" />.

var paramString = $('#gridview :input').serialize();
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜