How do I remove the class on all siblings?
Posted
by cf_PhillipSenn
on Stack Overflow
See other posts from Stack Overflow
or by cf_PhillipSenn
Published on 2010-06-03T19:55:08Z
Indexed on
2010/06/03
20:04 UTC
Read the original article
Hit count: 133
jquery-ui
I've got:
<th>First Name<span class="ui-icon ui-icon-arrowthick-1-s"></span></th>
When the user clicks on a th cell, I need to clear the span tag from every one of it's siblings.
$('th').click(function() {
var $th = $(this);
$th.siblings().each
© Stack Overflow or respective owner