You can use andSelf
to do the following:
$(this).children().andSelf().something();
You can also use .end
to display the last filtering operation of the current chain. Therefore, if you want children and brothers and sisters, you can do this too:
$(this) .children() // children of "this" .end() // now we're back to "this" .siblings() // siblings of "this" .andSelf() // and "this" itself .something();
source share