0
我有一个模式对话框,用户可以在其中登录的窗体打开。如果用户尚未注册,则会出现链接在那个模式对话框里面打开另一个带有注册表单的模态对话框。问题在于造成冲突,看起来很奇怪。我想我需要关闭登录表单模式对话框,然后打开注册模式对话框。Jquery Bootstrap Modal ...如何从另一个模态对话框中打开不同的模式对话框
// the button to open the login modal dialog
<button class="btn btn-primary btn-sm" data-toggle="modal" data-target="#login-dialog">
Login
</button>
//this button is inside the login modal dialog, a will open the registration modal dialog
'<button class="btn btn-primary btn-sm" data-toggle="modal" data-target="#registration-dialog">
Register
</button>