我正在制作一个网站的原型,我试图让它看起来像一个人提交表单以在引导模式中接收他们的信息。
我在页面顶部有这个登录:
<div class="center-top-div">
<form class="well inline-form" action="sidor/my_page.html" method="">
<input type="text" class="span2" placeholder="Username">
<input type="password" class="span2" placeholder="Password">
<a href="sidor/index_inloggad.html" class="btn btn-small btn-primary pull-right" id="logga-in-btn">Log in</a><br>
<a class="pull-right" id="amnesi" href="#myModal" data-toggle="modal">Forgotten?</a>
</form>
</div>
什么时候会点击链接“被遗忘?” 将显示一个模态:
<div id="myModal" 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>
<h4 id="myModalLabel">Vi behöver din E-postadress!</h4>
</div>
<div class="modal-body">
<form class="well inline-form larger-input">
<input class="input-large" type="text" class="span2" placeholder="Din E-postadress...">
<a href="//I WANT THIS TO LINK TO ANOTHER MODAL/GREETING MESSAGE" class="btn btn-small btn-primary pull-right"
id="logga-in-btn">Get my details!</a><br>
</form>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
我想要发生的是,当一个人点击“获取我的详细信息!” 我想在模态或其他模态中显示问候消息或其他内容。
任何想法将不胜感激!:)
/账单