Capture element added to the DOM
I have a coded 'field' in Sharepoint (I'm not a big SP fan) that shows a code based on a separate 'status' field and I've been using jQuery to find those table cells and change the 'code' to an image icon.
Works great, except in a few places on the site, the image is loaded after the fact in an ajax call when you click a certain button or what not. I could try to capture that button click and maybe throw in a SetTimeout, but that seems a bit like a hack.
Any thoughts for how to accomplish this?
Thanks in advance,
Skylar