1
我試圖用下面的代碼中的按鈕關閉彈出窗口。然而,調用close函數時,它似乎沒有工作:jQuery mobile close popup
$('#popupBasic').popup("close");
下面是HTML代碼:
<a href="#popupBasic" id="StopButton" data-rel="popup" data-role="button" data-theme="a" onclick="getLocation2(); Workoutdistance();" data-inline="true" class="">Stop</a>
<div data-role="popup" id="popupBasic">
<a href="" data-role="button" onclick="database()" data-inline="true" data-theme="a">Submit to DB</a>
</div>
任何想法?