How do you validate a form with multiple div's using jQuery Validate plugin?

I am using the [jQuery Validation plugin][1] and have an issue validating items that are in nested div's in my form:
html
aspx
and my setup with jQuery is: The end result is the first two fields are function as expected, but the input field in
doe not. Do I have to do something special with selectors or add the field specifically? Also, if I were to dynamically add fields to the dom how can I attach the validate() function to the form again so that I include the new dynamic input fields? **SOLVED** Many SO Cred's go to the God of Rock tvanfosson for pointing out that input tags lacked id and name attributes. Once I added them the validator worked. EXTRA cool is that if you have a client side template, the techinque works there as well:
html
aspx
[1]: http://bassistance.de/jquery-plugins/jquery-plugin-validation/

以上就是How do you validate a form with multiple div's using jQuery Validate plugin?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏