我有一個jQuery-confirm和im試圖顯示一些內容有一個選擇,我的select.selectMenu()似乎並不工作,因爲它顯示在jquery確認。它只顯示默認選擇。我可以輕鬆地在選擇範圍外的select上調用.selectMenu(),它將從select更改爲selectmenu。例如:在jQuery中顯示selectmenu確認
HTML:
<div id="aDiv">
<select id="aSelect"> <option value="1"> 1 </option></select>
</div>
<button type="button" id="aButton">Click </button>
CSS:
#aDiv {
display: none;
}
JS:
如何讓jQuery的確認顯示jQuery UI的小部件一樣selectmenu?
但現在我有一個新的問題。下拉菜單位於jquery內容窗口的後面,請看這裏:http://imgur.com/a/ayoJz。另外selectMenu()需要.selectmenu():) – jones
我在想也許'.ui-selectmenu-menu { \t \t z-index:9999; \t \t}在CSS中會解決問題,但我錯了,它沒有工作。 – jones
如何獲得jquery的z-index-confirm $ .confirm窗口? – jones