jQuery find thead element of a table

Use .find()

<table id="list">
 <thead>
 <tr>
 <th>Lorem ip sum....</th>
 </tr>
 </thead>

</table>

$('#list').find("thead");

Hide a thead element after found:

$('#list').find("thead").hide();

Remove a thead element after found

$('#list').find("thead").remove();

By Keenlio, March 5, 2014

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *


1 × = five

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>