You can't nest a div inside a table like this. JavaScript (not just Prototype) has no tolerance for malformed HTML. Browsers handle it perfectly (for certain definitions of perfectly) but scripts rely on you getting the HTML right before you start horsing around with the DOM.
The simplest way to do what you're describing here is to make your HTML valid, and add a new set of valid tags that you're not currently using: thead and tbody.
<table class="row_highlight">
<thead>
<tr>
<th>Head one</th><th>Head two</th>
</tr>
</thead>
<tbody>
<tr>
<td>Col one</td><td>Col two</td>
</tr>
... many more rows here ...
</tbody>
</table>
Now, all you need to get the table rows to highlight is this:
$$('.row_highlight tbody tr').each(function(item){
... your code here ...
});
See how that works?
Walter
>
>
> --
> You received this message because you are subscribed to the Google Groups "Prototype &
script.aculo.us" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
prototype-scripta...@googlegroups.com.
> To post to this group, send email to
prototype-s...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>