I have the following selector
$ ('# navigation ul li a'). click (function (evt) {}
this is to get the elements I need, and also repeat the child elements.
those. i get it too
#navigation ul li li a // extra li
It’s just interesting to know what level of dom I choose.
you can use which is a selector parent > child..
parent > child
see Choosing a child ("parent> child")
you could use it something like this
$('#navigation>ul>li>a')
Source: https://habr.com/ru/post/1729818/More articles:Android webapp hiding scrollbar? - androidWhat to do with a community URL type like Last.FM or Wikipedia? - urlPHP and Russian letters - phpHow to get rid of NHibernate ISession in an ASP.NET MVC application - asp.net-mvcКак получить opencv включить работу в kubuntu? (Включает решение о том, как включить и связать в netbeans 6.7.1) - cn-grams using regex - c #django-ajax-selects app: How to create a new object if it is not already in the database? - djangoregex: matching parts of a string when a string contains part of a regular expression pattern - pythonArrayList Confusion and help! - javaConvert large XML file to CSV in PHP - xmlAll Articles