.find('.woocommerce-tabs').not('.tabs').html();
위는 jQuery를의 일부가 클래스를 찾을 수 있지만, .woocommerce-tabs
요소의 자식입니다 .tabs
를 제외하는 데 사용됩니다) (이 아니요 사용하여 콘텐츠의 일부를 제외합니다.jQuery를이
여전히 .tabs
은 내가 원하는 바가 아닌 출력물에 나타납니다.
<div class="woocommerce-tabs">
<ul class="tabs">
<li class="description_tab active">
<a href="#tab-description">Description</a>
</li>
<li class="additional_information_tab">
<a href="#tab-additional_information">Additional Information</a>
</li>
</ul>
<div class="panel entry-content" id="tab-description" style="display: block;">
<h2>Product Description</h2>
<ul>
<li>Robust</li>
<li>Continuous 360° turntable rotation</li>
</ul>
</div>
<div class="panel entry-content" id="tab-additional_information" style="display: none;">
<h2>Additional Information</h2>
<table class="shop_attributes">
<tbody>
<tr class="">
<th>Tires (foam-filled)</th>
<td>
<p>16"</p>
</td>
</tr>
<tr class="">
<th>Weight (kg)</th>
<td>
<p>6950</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
당신은 아마 그것을 위해 HTML을 게시 할 수 : 다음
당신은 당신의 코드 내부
html
를 복제 할 수 있습니까? – Joseph@Joseph html 예제가 추가되었습니다. – ngplayground