Change modal content
Documentation updated on December 6th.
Create a new Modal
The Modal will have this configuration:
var myModal = $("#modal").modal("<p>This is a modal window with static content.</p>");
Is the content boring? Change it!
We'll change the content using, as setter, the
myModal.content("New content for myModal, using the content() method.");
See more on Modal documentation.
Now, if we use the
content method as getter:
"New content for myModal, using the content() method."
This is simple, therefore you can try and change the Modal's content on your projects.