> However, this produces no visual effect:
>  $('#myElement').parent('tr')
> .before('<tr><td class="errorCell" colspan="100"><span class="error">Please
> correct the error</span><br /></td></tr>');
>
> If I change the code, I see my new row:
> $('#myElement').parent().parent()
>  .before('<tr><td class="errorCell" colspan="100"><span class="error">Please
> correct the error</span><br /></td></tr>');
>
> I don't like this since it's bound to a specific table arrangement.
>
> Does anyone have any hints or different solutions?

What happens if you just do:
$('#myElement').parent().before('<tr>...</tr>');

It seems like something like that should work just fine. (The fact
that .parent().parent() works kind of makes me suspicious) Do you have
an example up anywhere of the problem in action?

--John

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to