Home >Web Front-end >JS Tutorial >Example introduction to the difference between hierarchical selectors and find() in Jquery_jquery

Example introduction to the difference between hierarchical selectors and find() in Jquery_jquery

WBOY
WBOYOriginal
2016-05-16 16:59:061396browse
Copy code The code is as follows:

$("#anaylseBody tr").find("td:eq ("
$("#analyse th:contains(" $(this).val() ")").index()
")").hide();

("#anaylseBody tr") find as the base
Copy code The code is as follows:

$("#anaylseBody tr td") uses the last td as the base

The range is different
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn