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/
本文版权归作者和博客园共有,欢迎转载,但必须给出原文链接,并保留此段声明,否则保留追究法律责任的权利。
查看全文
相关阅读:
SupoSE 概述 Redmine
tmux guake
How to Install and Use Krugle Basic
use webdevelop tools to delete domain specific cookies for ecommerical cps union effect
执行hudson daemon的脚本
python技巧26[python的egg包的安装和制作]
HOWTO Modular Xorg
ARC专题:再续 Xcode 4.2 中的Automatic Reference Counting (ARC)
ARC专题:在Xcode 4.2中加入不支持ARC的源码
Windows下的.NET+ Memcached安装
原文地址:https://www.cnblogs.com/haobox/p/14225750.html
最新文章
关于辞典的数据格式
丁亮的自述
关于辞典的数据格式
关于-非法的xml字符
项目的SVN地址
项目的SVN地址
蔡学镛:2008编程语言走势解盘
Seven Languages in Seven Weeks: A Pragmatic Guide to Learning Programming Languages/Bruce A. Tate图书卓越亚马逊
svnquery
制作python模块安装包(转)_Time Goes By_百度空间
热门文章
Atlassian Software Tools Development, Collaboration, Code Review | Atlassian
atlassian公司在自己的一亩三分地里耕得很深啊,厉害
sweety fisheye an product of jira team's company
最近在研究Spring Data JPA,大家都来说说感受~~ Spring,JPA Java ITeye论坛
Graham King » Inmemory keyvalue store in C, Go and Python
Teleport the Unix/Linux cd command, improved
TreapDB is a keyvalue store based on Treap
利用Java开源库把汉字转拼音(推荐OK)_爱题巴.爱技术.小川哥_百度空间
关于《Rails Is Not For Beginners》,我有话要说 White Space
linux下远程管理利器tmux rainbird 51CTO技术博客
Copyright © 2011-2022 走看看