我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

验证用户选择的autosuggest

I am using Geonames API to autocomplete an address field in my form. It is of the format "City,State,Country". Sometimes it takes time for the suggestions to load, so the user enters "City" and moves to next field. Moreover, there are spelling mistakes in the city names. I want to force the user to select a value from autocomplete values. How can this be achieved in PHP and Jquery?

近期文章

  • PHPEXCEL为所有工作表设置标题
  • Wordpress用户身份验证过程
  • 来自$ _GET的特殊字符使用php
  • 我可以通过jquery.getJSON发送数组吗?
  • 从SQL结果中删除重复的行
  • 从字符串中获取复杂的Object
  • Drupal 8找不到SoapClient类
  • mysql其中column =所有可能的值
  • 与Yii2的Firebase数据库连接
  • 找不到类'setasign \ Fpdi \ FpdfTpl'
  • Zend Framework - Router_Rewrite链接?
  • PHP字符串索引$ str [“test”]与$ str [0]相同? [重复]
  • PHP / MySql插入语句不起作用
  • 如何使用Hybridauth 3登录/退出?
  • PHP使用XSLT生成了Doctype问题
  • Laravel 5.3个人访问令牌500
  • 需要帮助简单的sql添加记录
  • 如何在FF DevEd中将PHP登录到控制台?
  • Repcached(故障转移似乎不起作用)
  • 在laravel中集成核心php库[关闭]

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华