0

How do I hide a certain label dynamically along with it's leading th tag?

example:

<th class="woo_metabox_names"><label for="woothemes_size">sq ft</label></th>

I tried and this doesn't work, by the way:

$('label[for="woothemes_size"]').hide();
4

1 回答 1

1

To hide both the label and th elements, you can use:

$('label[for="woothemes_size"]').parent().hide();
于 2012-10-26T02:02:58.160 回答