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>