Hi all,
In my
jsp page i am iterating a collection using <c:forEach> and displaying it in a table as rows.Suppose if i click a row,i want to change the color of the row.How can I do that...
what i know is,
I set the id attribute of each row as the loop goes..and pass the id of the row to a function which is called on onclick.Inside that functin how can give change color code.
function fnsetRow(rowId){
lert("clicked"+rowId);
var table = document.getElementById("listTable"); //this is the table id
var rows = table.getElementsByTagName("tr");
rows[rowId].class="band";
}
but it is not working...what is the problem..help me.
[ June 22, 2006: Message edited by: Bear Bibeault ]