I'm dynamically creating and adding the following to the DOM:
<a href="my_modal_link" data-toggle="modal">Click me</a>
However, since this content is added dynamically after the page is loaded, the Bootstrap modal is never registered, and clicking the link navigates the browser to the new page rather than displaying it as a modal dialog.
How can I get Bootstrap to know about this dynamically added modal tag so that it will display the content in a modal when the link is clicked? Or, do I have to manually wire up the click event to call .modal()?