简体   繁体   English

Cordova / Phonegap输入选择不起作用

[英]Cordova/Phonegap Input select doesn't work

I have a problem...I have a Cordova/Phonegap app and I want to port this app from cordova 2.0 to cordova 5.1.1...Now when I start the app the select input don't work...I'm using Iscroll.js and fastclick.js...Maybe they are the problem...Is there anyone that fix this problem? 我有问题...我有一个Cordova / Phonegap应用程序,我想将此应用程序从Cordova 2.0移植到Cordova 5.1.1 ...现在,当我启动该应用程序时,选择输入不起作用...我m使用Iscroll.js和fastclick.js ...也许是问题所在...是否有人可以解决此问题? In the normal case when I click on select the device open the native select...this is my select: 在正常情况下,当我单击选择设备时,请打开本机选择...这是我的选择:

<select type="text" id="myId" style="width: 99%" onchange="function()">
                        <option selected="selected">---</option>
                        <option>1</option>
                        <option>2</option>
                        <option>3</option>
                        <option>4</option>
                        <option>5</option>
                        <option>6</option>
                        <option>7</option>
                        <option>8</option>
                        <option>9</option>
                    </select>

I have tested your code on my iPhone and the select comes up as expected. 我已经在iPhone上测试了您的代码,然后按预期出现了选择。 Try and exclude your javascript libraries to find out which one is interfering with your select. 尝试并排除您的JavaScript库,以找出哪个干扰您的选择。

On a side note, type="text" has no effect on the select. 附带说明, type =“ text”对选择无效。 It is only applicable on input elements. 它仅适用于输入元素。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM