Do you mean whose "parent's ID" is thisState? If so, you can do this:
// store list of elements $list = $('#'+thisState).children('.placemark'); This will get the immediate children of the parent. Otherwise, if you want to get all decedents, use .find() instead of .children(). // act on the list. this can be whatever you want to do. $list.each(function() { ...do something... }); On Oct 30, 1:56 am, jmatthews <jmatth...@xexam.net> wrote: > thisState="ALHouse"; > > I want to select all elements of class="placemark" and whose parent is > thisState. > > Any suggestions? > > Thanks.