简体   繁体   English

trigger.io:自动填充文本框无效

[英]trigger.io: autocomplete textbox is not working

I need an autocomplete textbox in my Iphone/Android App. 我需要在我的Iphone / Android应用程序中使用自动填充文本框。

I have tried JQuery and native HTML5 autocomplete textboxes but it nothing seems to work both JSON requests nor datalists. 我已经尝试过JQuery和本机HTML5自动完成文本框,但它似乎没有任何工作JSON请求和数据列表。

Im testing on an Android device Samsung Galaxy s2 我在Android设备上测试三星Galaxy s2

<label>
  Enter your favorite cartoon character:<br />
  <input type="text" name="favCharacter" list="characters" maxlength="50" style="width:95%;">
  <datalist id="characters">
   <option value="Homer Simpson">
   <option value="Bart">
   <option value="Fred Flinstone">
  </datalist>
 </label>

Anyone faced this issue before ? 以前有人遇到这个问题吗? Thanks 谢谢

The datalist feature is not supported by Android webkit, see http://caniuse.com/#feat=datalist Android webkit不支持datalist功能,请访问http://caniuse.com/#feat=datalist

You should be able to use a jQuery plugin to achieve a similar effect though, have you tried http://jqueryui.com/autocomplete/ 你应该可以使用jQuery插件来实现类似的效果,你试过http://jqueryui.com/autocomplete/

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

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