에서 ID를 추출jQuery를 텍스트를 찾아 하위 요소
www.url.com 내가 테이블 ID를 추출 할 발견되면 서브 테이블에서.
내 HTML은 다음과 같이입니다 : 내가 ID = "24"를 찾으려면이 경우
<div class="box" id="results">
<div class="box-header">
<h1>www.url.com</h1>
</div>
<table cellpadding="0" cellspacing="0" border="0" class="display" id="24">
<thead>
<tr>
<th>col</th>
</tr>
<tr id="161">
<td class="kw" style="border-left: 1px solid white;border-right: 1px solid #F4F4F4;padding: 12px 14px;position: relative;text-align: left;">111111</td>
</tr>
</thead>
<tbody></tbody>
</table>
.
이
내가 지금까지 무엇을 가지고 :var foundin = $('*:contains("www.url.com")');
방법 ID를 :) 얻는 아무 생각
완벽하게 작동합니다! 감사합니다 :) – Elvin
아무 걱정도, 받아 들일 무료 느낌! –
6 분 안에 할 수 있습니다. – Elvin