jQuery, , ? , , , .
next() - dom, .
Use instead. means that only the first level is canceled.
$('body > div').hide();
But it gives the same result.
$('body').children('div').hide();
But,
- Further
$('body + div').hide();
and
- Previous
$('body ~ div').hide();
Doesn't seem to work as expected? But jQuery use it as an example to select CSS ...
Perhaps there is a complicated syntax for this, but I could not figure it out ...
source
share