I have an ASP.NET ListView. Via ItemTemplate it renders as a table with columns ID and Name, and three rows of sample data:
ID | Name
1 | Name1
2 | Name2
3 | Name3
The data cells (i.e., 1, Name1, etc.) are all ASP.NET TextBoxes. In other words HTML inputs.
Is there a convenient, or at least most convenient, jQuery method for extracting the values from these data cells and packaging them into a JSON array that is sent AJAX-style to the server?
If it's not too much trouble I'd also really appreciate advice on how to add a row to the ListView without a postback.