I'm trying to inject some HTML into my DOM when I have my custom module enabled, because I'm want to add a block of HTML so that I can use it for popups controlled via javascript at a later point

I'm basically trying to create a custom popup template using bootstrap, but I'd rather try to have the template HTML exist in the DOM somewhere so that I can use javascript to populate it and launch it, rather than making my javascript wrap the HTML itself each time because when closed, it won't remove the HTML entirely


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.