What does this mean: "jQuery ('> li', this)"
I am trying to understand how this jQuery plugin works: http://codeasily.com/jquery/multi-column-list-with-jquery
In the plugin, this line starts from the beginning:
if(jQuery('> li', this)) {
I know that
ul > li
means: this means selecting all li whose direct parent is ul. But what does li mean? I ran:
$('> li')
but he returns
[]
although I have many nested unordered HTML pages per page.
Do not use it. The docs say you shouldn't use them, as this will be obsolete soon.
From http://api.jquery.com/child-selector/
.
$("> elem", context). , , .
(), .