An example of the difference between a hierarchical selector and a find of in Jquery

  • 2020-03-30 02:04:59
  • OfStack

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

("#anaylseBody tr") find as a base
 
$("#anaylseBody tr td")  In the final td As the foundation  

Different ranges

Related articles: