Is there a way to find out that the elements are in the document before I try to access them using jQuery?
Code snippet:
var s = new AjaxCall(someurl);
s.oncomplete = function(response) {
var container = $('container_id');
container.innerHTML = response;
var ul = $('some_id'); }
The answer is some HTML returned by an Ajax call.
This answer updates the content div, and then I refer to the element that was created innerHTML( ulin code).
If the answer is large, I believe that at times some elements will not be displayed when I try to access them. Does domreadyAJAX support for calls and can this solve my problem?
source
share