hi,
how can I avoid this in jQuery:
$(this).parents(".node-inner").children().children().children();
I tried:
$(this).parents(".node-inner").children(".className");
but it doesn't work.
thanks
hi,
how can I avoid this in jQuery:
$(this).parents(".node-inner").children().children().children();
I tried:
$(this).parents(".node-inner").children(".className");
but it doesn't work.
thanks
You can use the find()
function to search through the entire DOM subtree:
$(this).parents(".node-inner").find(".className");