如何在jQuery Mobile中顺序显示多个对话框? [英] How to sequentially show multiple dialogs in jQuery Mobile?

查看:69
本文介绍了如何在jQuery Mobile中顺序显示多个对话框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在jQuery Mobile(jQM)中依次显示多个对话框?

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

按顺序打开两个对话框

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

导致链接重定向到

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

来自jquery UI的isOpen不起作用。

isOpen from jquery UI doesn't work.

推荐答案

您可以将更改事件绑定到第一个对话框(因此当用户选择一些东西)可能会启动第二个对话框。示例:(不工作,但可能会让您思考正确的方向) http://jsfiddle.net/LHG4L/ 18 /

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/

这篇关于如何在jQuery Mobile中顺序显示多个对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆