How to sequentially show multiple dialogs in jQuery Mobile?

我的未来我决定 提交于 2020-01-03 20:57:50

问题


How can I sequentially show multiple dialogs in jQuery Mobile (jQM)?

Opening two dialogs directly in sequence

$.mobile.changePage("#dialog1", "pop");
$.mobile.changePage("#dialog2", "pop");

results in a chained redirection to

 index&ui-state=dialog&ui-state=dialog

isOpen from jquery UI doesn't work.


回答1:


You could tie the change event to the first dialog (so when the user selects something) to maybe kick off the second dialog. Example: (Not working but maybe to get you thinking in the right direction) http://jsfiddle.net/LHG4L/18/



来源:https://stackoverflow.com/questions/5863926/how-to-sequentially-show-multiple-dialogs-in-jquery-mobile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!