You can use jQuery:
http://api.jquery.com/children/[
^].
This is one of
traversing functions; please see:
http://api.jquery.com/category/traversing/[
^].
Alternatively, you can use some other jQuery
selector by some property which is common to all children but not other HTML elements on the page, such as CSS class (using a
class selector) or having the same parent (with the effect similar to the traversing case shown above). Naturally, it should not be the
id selector is the
id
attribute implies uniqueness of its value (I refer to the mistake done by one of the inquirers, don't repeat it). Please see:
http://api.jquery.com/category/selectors/[
^],
http://api.jquery.com/class-selector/[
^],
http://api.jquery.com/child-selector/[
^].
The production of those methods will give you some collection of XML DOM elements (in jQuery wrapper).
If you need to learn jQuery (highly recommended), please see:
http://en.wikipedia.org/wiki/JQuery[
^],
http://learn.jquery.com[
^],
start here:
http://learn.jquery.com/about-jquery/how-jquery-works/[
^].
—SA