In doing the search results in order to look good need to highlight the selected row, there is a good example, the need for friends can refer to the following
I'm doing search results, in order to look good need to highlight the selected row, I used a onclick event: code as follows: Var assno= "" "; function Check (obj,che,rwid) { if (obj.checked==true) { document.getElementById (rwid). Style.background = "Blue"; assno= document.getElementById (che) .value; alert (assno); } } This is the dynamically generated HTML code: code for the Web page as follows: Out.println ("<tr id=" +idrow+ "><td align=/" center/"><input type=/" checkbox/"onclick=/" check (this, ' ") +par+ "', '" +idrow+ "") ("/></td>"); out.println ("<td id=/" "+par+"/"align=/" center/"value=/") "" "+info.getassetsno () +"/">" +info.getassetsno () + "</td>"); out.println ("<td align=/" center/"> "+info.getserialno () +" </td> "); out.println (" <td align=/"center/" > "+info.getassetsname () +" </ Td> "); out.println (" <td align=/"center/" > "+info.getassetsclass () +" </td> "); out.println ("<td align=/" center/">" +info.getcgtime () + "</td>"); out.println ("<td align=/" center/">" +info.getgbtime () + "</td>"); out.println ("<td align=/" center/">" +info.getconfiginfo () + " </td> ");