Appending rows to a table
Hello all-
I have a table with this repeating structure:
<tr>
<td>
<a href="link">
</td>
<tr>
......
......
I'm trying to get it so that when I hover over the <a> tag, a new row
is appended to the current row.
Here's what I have so far but it doesn't work. I know it's not pretty:
$('td a').hover(function() {
$('<tr class="child"><td>blahblah</td></
tr>').appendTo(this).parent().parent():
});
Not sure if "parent().parent()" is even allowed.
I'm new to jquery and any insights you can give would be really
edifying. Thanks.
echobase