I know this question has been asked hundred of times before and I\'ve been through them but those couldn\'t fix my case :s
This is my code so far
Before posting my complete solution i would like to know , have you initialized your modal before loading it. Initialization:-
$(function(){ $('#myModal').modal({ show:true, backdrop:'static' }); //now on button click $('#myModal').modal('show'); });