Javascript 移动浏览器(Android、iPhone和BlackBerry)的模式弹出表单
我需要在我的网站上有一个模式弹出屏幕/表单,可以在安卓、iphone和黑莓手机上使用。我尝试使用jQueryUI对话框来实现这一点,但它似乎在提到的设备上无法正常工作。谁能帮我一下吗Javascript 移动浏览器(Android、iPhone和BlackBerry)的模式弹出表单,javascript,android,iphone,html,blackberry,Javascript,Android,Iphone,Html,Blackberry,我需要在我的网站上有一个模式弹出屏幕/表单,可以在安卓、iphone和黑莓手机上使用。我尝试使用jQueryUI对话框来实现这一点,但它似乎在提到的设备上无法正常工作。谁能帮我一下吗 谢谢。看看jQueryMobile-您可以这样做: <script> $('#okButton').bind('click', function () { alert('hello world'); }); </script> <div data-ro
谢谢。看看jQueryMobile-您可以这样做:
<script>
$('#okButton').bind('click', function () {
alert('hello world');
});
</script>
<div data-role="page">
<div data-role="content">
<a href="#myDialog" data-rel="dialog" data-role="button">Open Dialog</a>
</div>
</div>
<div id="myDialog" data-role="dialog">
<a href="#" data-role="button" data-icon="check" id="okButton">OK</a>
<a href="#" data-rel="back" data-icon="delete" data-role="button">Cancel</a>
</div>
$(“#确定按钮”).bind('click',function(){
警报(“你好世界”);
});
看看jQueryMobile——您可以这样做:
<script>
$('#okButton').bind('click', function () {
alert('hello world');
});
</script>
<div data-role="page">
<div data-role="content">
<a href="#myDialog" data-rel="dialog" data-role="button">Open Dialog</a>
</div>
</div>
<div id="myDialog" data-role="dialog">
<a href="#" data-role="button" data-icon="check" id="okButton">OK</a>
<a href="#" data-rel="back" data-icon="delete" data-role="button">Cancel</a>
</div>
$(“#确定按钮”).bind('click',function(){
警报(“你好世界”);
});