2015-08-26 37 views
0

我創建了一個引用模式的按鈕,但它根本不打開模式。這個代碼領域不是我的領域,SQL是。該代碼實際上存在於與網站交互時調用的SQL過程中。模式按鈕點擊時什麼也不做

想法?

--Remove package item, Modal Popup 
    <div id="delete_btn_modal" class="modal fade" role="dialog"> 
     <div class="modal-dialog"> 
      <div class=modal-body> 
       <h3><font color="red" align="center">Are you sure?</h3></font></br> 
       <p>Deleting a package item will remove the entire package</br></br> 
        <button type="button" class="btnStyle" data-dismiss="modal">Close</button> 
        <button type="button" class="btnStyle" onclick=location.href="http://wowfestival.lajollaplayhouse.org/cart/precart.aspx?p=499">Delete Package</button> 
       </p> 
      </div> 
     </div> 
    </div> 

--button 
     <button type="button" class="btnStyle" data-toggle="modal" data-target="#delete_btn_modal">Delete</button> 
+0

你的Bootstrap依賴關係到位了嗎(jQuery + Bootstrap CSS/JS)? – vanburen

+0

不知道,我會在哪裏找到這些?我在這裏遇到的一些麻煩是我沒有完全訪問網站或它的文件。我只是在一個由網站調用的SQL過程中工作。 –

回答

1

好像你還沒有加入引導的javascript

你的代碼是完美和精細的

檢查bootply爲您的代碼。 :http://www.bootply.com/zOa8UJ4Vfb

還檢查你你也有jQuery。

如果不在cdn下使用快速測試。

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script> 
    <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> 
+0

我添加了您包含的代碼片段,並且該按鈕現在可點擊並顯示模式。然而,幾個星期前我沒有這個代碼,我不知道可能發生了什麼變化?此外,它用來調出一個小盒子,但現在它只是調暗整個屏幕。任何想法這裏發生了什麼? –

相關問題