Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我想给一个大DIV内的input控件群验证,却失败了 #250

Open
sdlddr opened this issue Dec 26, 2016 · 1 comment
Open

我想给一个大DIV内的input控件群验证,却失败了 #250

sdlddr opened this issue Dec 26, 2016 · 1 comment
Labels

Comments

@sdlddr
Copy link

sdlddr commented Dec 26, 2016

如题,我想给一个大DIV内的input控件群验证,发现该DIV内如果有小部分input被包在一个小型form里,则只能验证该小型form里的控件,form外围的控件无法验证到。
现我需要把大DIV容器内的所有input控件都纳入到验证中,又不能去掉form,也不能把所有input控件放到form中,那么应该如何操作?

@niceue
Copy link
Owner

niceue commented Jun 13, 2017

通过js在大div上初始化

$("#bigDIV").validator(options)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants