edit: I don’t get any errors anymore, but executing this code:
$("#button-container").append(".tbox");
only places “.tbox” text next to the button that is created when you open the modal. It doesn’t get appended to the modal.
Clicking the “open modal” link, a button is created. I tried to append that to the modal with no luck. Any idea why?
Seems there’s no “tclose” id element in the page. When you run the script, the “tclose” button is nowhere in the page.
As @Chimoo said you should use:
and this should append your element.