admin管理员组文章数量:1415673
Looking at some video tutorials I follow what has been done but don't seem to get to modal of the register link to trigger.
Here is the link I want to trigger:
<li><a href="#register-modal" data-toggle="modal" data-target="#register-modal">Register</a></li>
Here is the modal that should be triggering
<!-- Register Modal -->
<div class="modal fade" id="#register-modal" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h2>Register</h2>
</div>
</div>
</div>
</div>
I assume that there should be jQuery to be implemented after looking at other answers but i do not see how e if the jQuery es from the bootstrap. The Bootstrap 3 documentation seems to do the same as I did
Looking at some video tutorials I follow what has been done but don't seem to get to modal of the register link to trigger.
Here is the link I want to trigger:
<li><a href="#register-modal" data-toggle="modal" data-target="#register-modal">Register</a></li>
Here is the modal that should be triggering
<!-- Register Modal -->
<div class="modal fade" id="#register-modal" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h2>Register</h2>
</div>
</div>
</div>
</div>
I assume that there should be jQuery to be implemented after looking at other answers but i do not see how e if the jQuery es from the bootstrap. The Bootstrap 3 documentation seems to do the same as I did http://getbootstrap./javascript/#modals-examples
Share Improve this question asked Mar 22, 2015 at 0:28 Beast_CodeBeast_Code 3,26714 gold badges44 silver badges54 bronze badges1 Answer
Reset to default 2The id
attribute shouldn't have a hashtag.
Change
<div class="modal fade" id="#register-modal" role="dialog"></div>
to:
<div class="modal fade" id="register-modal" role="dialog"></div>
Working Example
本文标签: javascriptBootstrap 3 Modal won39t pop up when triggering from anchor tagStack Overflow
版权声明:本文标题:javascript - Bootstrap 3 Modal won't pop up when triggering from anchor tag - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745204191a2647551.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论