简体   繁体   中英

how to restrict anonymous data while using jquery autocomplete plugin

I am using jQuery autocomplete plugin. I want to restrict the user to select the options only available from autocomplete list and he cannot enter the non available. And the data for autocomplete is from the server and not local.

Is there any option to implement it.

您可以在表单提交事件中检查用户输入的值是否有效,否则可以忽略表单提交并显示警报;)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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