I wouldn’t have expected this to work, but it looks like D3 will sub-select any element that is a child of the selection and matches the selector – so this works:
d3.select(this).selectAll('div > ul');
See http://jsfiddle.net/g3aay/2/
I wouldn’t have expected this to work, but it looks like D3 will sub-select any element that is a child of the selection and matches the selector – so this works:
d3.select(this).selectAll('div > ul');
See http://jsfiddle.net/g3aay/2/