View Single Post
Old 09-17-2012, 07:26 PM   PM User | #1
Acheron
New to the CF scene

 
Join Date: Sep 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Acheron is an unknown quantity at this point
Manipulating ajax data after load

I currently have a script that it uses ajax to search, the results turn up and I have buttons to each result.

Code:
document.getElementById('buttonone').innerHTML = "Search Sent";
Works for the button that loaded with the original page
Code:
document.getElementById('buttontwo').innerHTML = "Added Ty";
Does not work for the button loaded with ajax

Is there a way to register the new elements on ajax load?
Acheron is offline   Reply With Quote