Как удалить th тег с jquery, где класс?удалить th тег с jquery, где класс
мой стол:
<table>
<thead>
<th class="NoRemove">1</th>
<th>2</th>
<th class="NoRemove">3</th>
<th class="NoRemove">4</th>
<th class="NoRemove">5</th>
<th>6</th>
<th>7</th>
</thead>
</table>
демо: jsfiddle
Сценарий:
if(th.class!="NoRemove")
{
th.remove();
}
Мне нужно написать код выше для JQuery. Но я понятия не имею, как писать
Используйте '.not()' или ': нет()' методы JQuery для этой задачи. –