zoukankan
html css js c++ java
11月20号
使用javascript对html中表单提交的内容进行判定:
例:
function
validateForm
(
)
{
var
x
=
document
.
forms
[
"
myForm
"
]
[
"
fname
"
]
.
value
;
if
(
x
==
null
||
x
==
"
"
)
{
alert
(
"
需要输入名字。
"
)
;
return
false
;
}
}
可以使用函数对表单进行验证。
作者:
哦心有
出处:
https://www.cnblogs.com/haobox/
本文版权归作者和博客园共有,欢迎转载,但必须给出原文链接,并保留此段声明,否则保留追究法律责任的权利。
查看全文
相关阅读:
H5实现的时钟
Hystrix 熔断机制原理
Redis模块化基本介绍
Redis Pipeline原理分析
Redis事务原理分析
Java NIO原理分析
Java Reference 源码分析
JDK AtomicInteger 源码分析
Java 包装类笔记
Spring Cache 笔记
原文地址:https://www.cnblogs.com/haobox/p/14225750.html
最新文章
12c OCP考试专项 [1z0-071]-Q15: cross join 笛卡尔积(2020.06.18)
Postman发送webservice设置请求头问题
CENTOS7 安装telnet
oracle 行转列 分组分列显示
复选框选中取消全选状态
CentOS7搭建Zookeeper集群
CentOS7 下设置静态IP
Windows 安装配置MongoDB
redis集群搭建
CentOS 7安装mysql(rpm)
热门文章
IDEA启动项目内存溢出
111
idea导出可执行jar包
Mac 安装nodejs
IDEA 开发工具的快捷键
Log4j读取配置文件并使用
Log4J日志信息配置文件详解
svn使用教程
Window环境下搭建Vue.js开发环境
Java-Swing常用布局管理器
Copyright © 2011-2022 走看看