如果用户不选择自动列表中的值 [英] if user dose not select the value from the auto list

查看:65
本文介绍了如果用户不选择自动列表中的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家下午好。







这里我提供一个自动列表给如果用户输入类似S的值,则自动列表会显示以S开头的所有值,但是用户没有从自动列表中选择值并单击插入按钮,然后在表中使用S保存值。 br $> b $ b



这里我的要求是,如果用户没有从自动列表中选择任何值,那么获取警报我选择任何值... 。点击插入按钮。



请帮助解决此问题。



先谢谢。

Hi good afternoon to all.



Here i'm providing a auto list to the user.If the user enter a value like S then the auto list shows all the values starting with S,but user didn't select value from the auto list and click the insert button then in the table save the value with S.


Here my requirement is if user didn't select any value from the auto list then get a alert my select any value....when click the insert button.

please help to resolve this issue.

Thanks in Advance.

推荐答案

取一个隐藏的字段。当用户从s开始从您的自动列表中选择一个值时,您将该值分配给隐藏字段。插入数据时检查隐藏字段是否为空。这将解决您的问题。
Take a hidden field. When user select a value from your auto list starting from s, you assign that value to hidden field. While inserting data check if hidden field is null or not. That will solve your issue.


这篇关于如果用户不选择自动列表中的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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