html and innerHTML method
Hi guys
i have this HTML structure
- <table>
- <tr><td></td></tr>
-
<tr><td></td></tr>
- </table>
i need to take all the tr element in HTML format, so i wanna take this output "
<tr><td></td></tr>" in string format.
i do this: jQuery("table tr").html()
but the result is "<td></td>" how i can take the parent too?
I hope is clear
thanks in advance!