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();
精彩评论