iPad自动打开html选择元素 [英] iPad opens html select elements automatically

查看:82
本文介绍了iPad自动打开html选择元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用iPad浏览的网站上的选择框有问题.选择框位于正在用jQuery隐藏/显示的jquery对话框中.当用户第一次点击页面时,包含选择框的对话框将被隐藏.有一个触发条件,用户可以单击以打开包含选择框的对话框,但是一旦显示该对话框,iPad会自动打开其本机选择框UI,而无需等到用户触摸它.有任何想法吗?这是站点和布局的图像. http://patriotvanlines.com .
我会为此添加代码,但我认为这很可能是iPad与jQuery一起出现的某种错误.

I have an issue with a select box on a website that is being browsed by iPad. The select box is within a jquery dialog that is being hidden/shown with jQuery. The dialog that contains the select box is hidden when the user first hits the page. There is a trigger that the user can click to open the dialog containing the select box, but as soon as the dialog is shown iPad automatically opens up it's native select box UI instead of waiting until the user touches it. Any ideas? Here is the site and an image of the layout. http://patriotvanlines.com.
I would add the code for this but I'm thinking it's most likely a bug of some sorts iPad has with jQuery.

推荐答案

我自己并未与IOS紧密合作,但我想知道这种小技巧是否会有所帮助.您可以在选择的disabled="disabled"上添加一个属性,并在单击图像时使用jquery删除该属性.

ihave not worked that closely with the IOS myself but I am wondering if this little hack would help it. you add an attribute on the select disabled="disabled" and remove the attribute using jquery when your image is clicked on.

这篇关于iPad自动打开html选择元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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