問題の説明
私には2つの見方があります。最初のリンクにはリンクが含まれており、クリックすると、カスタムモーダルである2番目のビューが表示されます。両方のファイルは、schoolという同じフォルダーにあります。
コード
firstView.html
<html>
<head>Click the link</head>
<body>
<div>
<a data-toggle="modal" href="secondView.html" data-target="#secondView" >Additional Details</a>
</div>
</body>
</html>
secondView.html
<!-- Modal -->
<div id="secondView" class="modal hide fade" tabindex="-1" role="dialog" aria- labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Modal header</h3>
</div>
<div class="modal-body">
<p>One fine body…</p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-primary">Save changes</button>
</div>
</div>
手元にある問題
問題は、リンクをクリックしても何も表示されないことです。コンソールを確認しましたが、エラーは表示されません。したがって、これはこれら2つのビューを接続する方法に関係していると思います。おそらく、hrefタグに関係していると思います。
皆様のご協力をよろしくお願いいたします。