How to select an element and its children in jquery?
I have a div with further divs contained in it.These divs internally
contain table/div in them. How can I select this parent div and its
children in jquery? Parent div has the class "AccordionTitle
AccordionTitle-selected"
I have tried following
var klo=$(".AccordionTitle.AccordionTitle-selected").contents()
and
var klo=$(".AccordionTitle.AccordionTitle-selected").children().clone()
but it is only selecting parent div and its children.Its not going deep to
the root.I am using jquery 1.9.0
Thanks
No comments:
Post a Comment