If you are using 1.3 it might be related to this: http://dev.jquery.com/ticket/3848
Anyway, if you select by ID then you don't need any other selectors as IDs are unique. On Jan 15, 7:06 pm, John <li...@johndubchak.com> wrote: > This has probably been asked several times on the list but I'm having > trouble finding a resolution. > > I have a simple problem where I dynamically add html to a div when the > user clicks a link based on an event handler, which works fine. > However, I am further trying to bind events to a couple of buttons > that are part of the dynamic html that has just been added. > > Using the following selector, I am able to view the newly added html > table and see the input button listed: > > $('#' + parentId + ' > #submitForm > table') > > But, nothing is returned when I try to use something similar to get > the submit button: > > $('#' + parentId + ' > #submitForm > table #button_id') > > I've tried a number of different selectors, including '>' and ' > ' (space) but can't seem to find it correctly in the DOM. > > Thanks for any help. > > John