Friday 21 November 2014

How to dismiss bootstrap modal inside function.




Make another button like this

 <button type="button" class="btn btn-warning btn-lg shiny" data-dismiss="modal" aria-hidden="true">Cancel</button>

This button contains `data-dismiss="modal"` .You can hide this button if you want.

Now You can use any other function in a customized way and when you want to hide the modal you can call

 $(".btn-warning").click();

3 comments:

  1. This was a really nice post! I would like to thank you for sharing your thoughts on this . We also provide services like Custom Website Development West London, digital marketing services etc you can visit.

    ReplyDelete
  2.  Aw, this was a really nice post! I would like to thank you for the efforts you’ve put in writing this site. Best of luck for the next! Please visit my web site huxdigital.com. Best Website Designers West London service provider.

    ReplyDelete