I currently have a script that it uses ajax to search, the results turn up and I have buttons to each result.
Works for the button that loaded with the original pageCode:
document.getElementById('buttonone').innerHTML = "Search Sent";
Does not work for the button loaded with ajaxCode:
document.getElementById('buttontwo').innerHTML = "Added Ty";
Is there a way to register the new elements on ajax load?