Hi
I am trying to repeat <div> several times
because I have a table and the design of each "2" rows is repeated.
Is this possible? or there is another way?
the scribt I am using is:
<table class="style1" dir="ltr" >
<script type = "text/javascript">
var rows = 10; // the value will be taken from DB later
for (var i = 0; i < rows; i++) {//
document.write('<div class= \"msgDiv\">');
document.write('<tr><td>Patient\sUserName</td><td> X </td></tr> '+
'<tr><td> System\'sResult</td><td>'+ i +'</td></tr>');
document.write('</div>');//something isn't working well><
}
</script>
</table>
the problem is that the <div> is repeated 10 times and the cells are created but each in separate location