如何添加选择框表单验证 [英] how to add select box form validation

查看:113
本文介绍了如何添加选择框表单验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站上使用此表单验证:

http://jorenrapini.com/blog/javascript/the-simple-quick-and-small-jquery-html-form-validation-solution [ ^ ]



问题是它没有提到选择框的代码。



任何人都可以给我用于验证选择框的代码?

我的选择框名称和ID是国家/地区

如果选择保留在国家/地区我想要一个错误通知

im using this form validation on my site:
http://jorenrapini.com/blog/javascript/the-simple-quick-and-small-jquery-html-form-validation-solution[^]

the problem is that it doesnt mention the code for a select box.

can anyone give me the code for validating a select box?
my select box name and id is "country"
and if the selection stays on "country" i want an error notice

推荐答案

请按照以下链接:





jQuery-Form-Validation-with-Selects



validate-select-via-jquery



验证



jquery-validation-for-drop-down-box







如果他们帮助您找到解决方案,请不要忘记将有用的回复标记为答案。
Please follow below links:


jQuery-Form-Validation-with-Selects

validate-select-via-jquery

Validation

jquery-validation-for-drop-down-box



Don''t forget to mark useful responses as Answer if they helped you towards a solution.


这篇关于如何添加选择框表单验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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