Periodically testing of elements that are added to the DOM after pageload
问题 I've got a page where you upload videos, those videos are then encoded (much like Youtube). The encoding part can take some time and I want to automatically show the user if encoding is done by periodically polling the encoding status from within the page, if encoding is completed I want to replace the encoding icon with a "play" button so the user can play the video. Because the list of uploaded videos itself is put into the DOM using AJAX (with jQuery) I have trouble wrapping my head around