Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you select children with chibli? #12

Open
sciascia opened this issue Dec 3, 2013 · 3 comments
Open

How do you select children with chibli? #12

sciascia opened this issue Dec 3, 2013 · 3 comments

Comments

@sciascia
Copy link

sciascia commented Dec 3, 2013

Sorry if this is easy but is there a trick to searching all the children of an element?

Was trying:

$('#dropdown-main .dropdown').toggle();
$('#dropdown-main > .dropdown').toggle();
$('#dropdown-main > ul > li .dropdown').toggle();
$('#dropdown-main > ul > li > .dropdown').toggle();
$($('#dropdown-cart').find('.dropdown')).toggle();

.dropdown is not a direct descendant of #dropdown-main - any pointers in the right direction would be much appreciated.

Cheers

@kylebarrow
Copy link
Owner

Would you be able to show an HTML sample?

@klihelp
Copy link

klihelp commented Feb 16, 2015

Yes, how would you select all children elements, maybe with .find()?

@valkuc
Copy link

valkuc commented Sep 13, 2017

Looks like there is no such functionality. I also would like to have ability to find children of some parent that I already have wrapped in chibi object:

var el = <<<some chibi wrapped DOM node that was passed externally, i.e. from function argument>>>
var childrens = el.find('.child element class');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants