Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I have a HTML table which contains dynamic rows and columns, like the following format and I need to save the ID's of the below data in a DB.
While creating the dynamic table I am giving ID's to TD's.
So I need to make a loop in JQuery for each row and then I need to get the ID of each TD and I will use Javascript object and I will bind the values to the object and I will give my object to WCF service and after that WCF service will handle the rest of things.
I need to get the check box ID's and label ID's.

So please tell me how to do it?

DepartMentRoleName	Add	Edit	Delete	View
UAT_SSE			checkboxes      checkboxes
Posted
Updated 18-Nov-11 1:56am
v2

1 solution

Getting all the TD elements in JQuery is very, very easy

JavaScript
$("TD").each(function()
{
  ... do something with each TD
});
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900