Ah I found the problem. I needed to take a break from coding
Solution - Don't sit in front of your computer writing code with a complete disregard for the passage of time.
- Do take breaks so you don't end up making stupid design decisions
- Instead of placing the markup inside the ajax call, just place the initial markup structure in the php script, so the entire DOM structure is available
- Then using the ajax call, populate the necessary elements via jQuery.
Sorry folks, false alarm. I am an idiot