有以下代碼來關閉和模態並打開第二個模態。總是遇到同樣的問題可以關閉一個,但不打開第二個,或者如果我改變順序,我可以打開一個而不關閉另一個。 (想想我已經嘗試過101個版本)。如果有人可以幫忙。模態關閉/打開
<a class="btn button_replace" href="#" id="close_open">
Replace Entry <i class="icon-exchange"></i>
</a>
<script type="text/javascript">
$("#close_open").click(function() {
$("#viewfilm").modal('hide');
$("#upfilm").modal({show:true});
});
</script>
嘗試'$( 「#upfilm」)模式(」。 show');'而不是'$(「#upfilm」)。modal({show:true});' –
'''處理關閉模式並打開新的模式達爾和我想''是在第一個模態,它處於顯示狀態,當你想關閉並想顯示第二個? – Shehary