The code have to work with ie so :last is not an option
<table class="ms-main" cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
<tr>..</tr>
<tr>..</tr>
<tr>..</tr>
<tr class=add this value including class=>..</tr>
</table>
Thank you in advance
EDIT1:
How about if the source file is this?
<table class="ms-main" cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
<tr>..</tr>
<tr>..</tr>
<tr>..</tr>
<tr class=add this value including class=>**<table>more nested tables here</table>**</tr>
</table>
:lastdoes work in IE.jQuery implements this manually, it has no relation to the css selectors supported by the browser.
Here’s a nice article on jQuery’s implementation of the sizzle selector and use of
querySelectorAllAs for your edit, you may want to use
>to denote that thetrshould be an immediate child, and not a more distant descendant.Look out for
tbody, though.