javascript - How can I trigger a Bootstrap modal programmatically? -


If I go here

and 'Launch Demo Model' Click on the hope that I'm using the modal as part of my signup process and includes server side validation. If there are problems, I want to redirect the user to the same model with my validation messages. At the moment I can not understand how to get a model to display in addition to physical clicks from the user. How do I programmatically launch the model?

To show manual pop up manually, you have to do this

 < Code> $ ('# myModal') Model ('show');   

You first need to get started with this show: false so that you will not be able to show yourself manually.

  $ ('#MyModal'). Modal ({show: false})   

Where myModal is the name of the modal container

Comments