Access dynamically generated form elements

Hey,

Is there a way to access a form element that was created using AJAX?

I’ve had no luck when using ‘document.getElementById( elementID )’ as the element doesn’t appear to be recognised.

Thanks!

Actually never mind! Got it!

Would you mind sharing what it was, for others who may have the same problem?

Well I should have been more specific with my ‘fix’.

The problem I was having is that there was both a span and select elements that were sharing the same id. And, as a result the span element with the id I had been searching for is the one that was incorrectly being returned with my document.getElementById function call…

In other words, document.getElementById works fine on elements that are created in an AJAX PHP script page. I was just being an idiot!