tags:

views:

33

answers:

0

I am creating a dynamic table in which each row has a group of radio buttons placed in different columns. In that i want to change the column background color in different rows when radio button is clicked. (i.e Each row is a radio button group and if someone selects a cell then the background color needs to be set for the cell and unselecting the previous one). So if someone selects a cell in the second row, the appropriate background color needs to be set, without unselecting the selection on the first row.

I am constructing the table using the code snippet below.

<table>
    <c:forEach>
        <tr>
            <c:forEach>
                <td><input type="radio" value="" /></td>
            </c:forEach>
        </tr>
    </c:forEach>
</table>