Tuesday, September 29, 2009

[jQuery] How to print tag name

The code below show [ td ], can I got the tagName like "td"?

<table>
<tr><td>1</td></tr>
</table>

console.log($('table:first tr').find(':first-child'));

No comments: