Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
$(’li:has(a)’) what this query do ....What is the output of this Code.I have seen this in a Code but i dont understand what the actualy happen
Posted
Updated 13-Mar-15 17:41pm
v2
Comments
Sergey Alexandrovich Kryukov 13-Mar-15 23:37pm    
What's wrong with reading original documentation?
Instead of looking for code doing who-knows-what, read documentation and manual and write you own. If you still can see something interesting on someone's code, ask its author.
—SA

1 solution

This is the combination of element selector with :has() selector. The documentation is crystal clear: http://api.jquery.com/has-selector[^].

See also:
http://api.jquery.com/element-selector/[^],
http://api.jquery.com/category/selectors[^].

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900