I have this HTML:
<table class="altRowTable">
<script type="text/javascript">
$(document).ready(function() {
$("table.altRow tr:odd").css("background-color", "#DEDFDE");
});
</script>
This works fine until I have some rows that contains a rowspan
(it's not consistent across the rows).
So I have something like this (below "-" represents a space - can't really do tables in SOF :) )
|---ID---|---name---|---Number---|
|---1----|---joe----|-----1------|
|--------|---tom----|-----2------|
|---2----|---joe----|-----3------|
|---3----|---joe----|-----4------|
|---4----|---joe----|-----6------|
|---5----|---joe----|-----5------|
|--------|---tom----|-----3------|
How can i keep all the rows within the rowspan the same backcolor ?