没有“形式”的jQuery验证标签 [英] jQuery validation without "form" tag

查看:70
本文介绍了没有“形式”的jQuery验证标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据 http://docs.jquery.com/Plugins/Validation 表格标签是必要的,以便进行验证。就我而言,我没有表格标签。如何点击按钮类型控件验证(必填字段)我的文本框

According to http://docs.jquery.com/Plugins/Validation the "form" tag is necessary in order to do validation. In my case I don't have form tag. How can I validate(required field) my textbox on click of "button" type control

推荐答案

为什么不添加表单标签?如果它是输入,那么它通常应该是表单的一部分。

Why not just add a form tag? If it's an input, then it should normally be part of a form.

这篇关于没有“形式”的jQuery验证标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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