Hi, I would like to ask why does my modal closes immediately when I hit the button to open it?
Here’s the link of the site http://ospar.netau.net/
Thank you.
Hi, I would like to ask why does my modal closes immediately when I hit the button to open it?
Here’s the link of the site http://ospar.netau.net/
Thank you.
Apologies but I was able to figure out the problem.,
Hi,
Glad you sorted the problem yourself but it would be helpful in future if you could also explain your solution so that the thread may be helpful to others with a similar problem.
I know sometimes its just a ‘typo’ or similar that causes the problem but even documenting a mistake can be helpful to show what can happen if you are not careful
Hi, yes I will. So here’s what I did wrong. I place two bootstrap.min.js links in my file:
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="js/bootstrap.min.js"></script>
That causes my model to close immediately, so I removed one which us the maxcdn links and my problem was solved.
Thank you again. Cheers!
Great and an important point for others to remember.
Only have one version in your page.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.