1) As Jinal noted, if you are going to use ids, they need to be unique. This isn't causing the problem you are seeing here, but it is making the web page invalid. And it means getElementById won't work.
2) Each line needs to have a different name. Since all the lines have the same name (data), you have declared only one group of radio buttons for the entire page.
so what should i do to make different set of radio button ...means one set of radio button for each iteration.
Jinal Prakas Shah
Joined: Jun 20, 2012
you can create a variable and increment it to give the id for every iteration and make sure you make the data variable a List<String>. In this way you will be able to get it for every iteration and you would not have to worry about anything.