I have this code
$(".address-geocomplete").geocomplete({ country: "US", details: ".details", detailsAttribute: "data-geo" });
It works with no problem when the elements were loaded with the document but it doesn't work when the element is called with ajax. I understand I could add the function to the ajax call but that's what I don't want. I would want to write this function once and for it to work no matter if the element was called on the document load or in ajax. Is that possible to do? How? Thanks