from表单
来源:互联网 发布:网络经典小说排行榜 编辑:程序博客网 时间:2024/05/17 02:08
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<input type="text" name="username" id="name">
<input type="text" name="password" id="password">
<input type="submit" value="提交">
</form>
<script>
function checkForm(){
var name=document.getElementById("name").value;
if(name==""||name==null){
return false;
}
var pwd=document.getElementById("password").value;
if(pwd==""||pwd==null){
return false;
}
return true;
}
</script>
</body>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
<input type="text" name="username" id="name">
<input type="text" name="password" id="password">
<input type="submit" value="提交">
</form>
<script>
function checkForm(){
var name=document.getElementById("name").value;
if(name==""||name==null){
return false;
}
var pwd=document.getElementById("password").value;
if(pwd==""||pwd==null){
return false;
}
return true;
}
</script>
</body>
</html>
转载:http://blog.csdn.net/s_liuxin_s/article/details/51011821
阅读全文
0 0
- from表单
- javaScript与from表单
- from表单禁止提交
- from 表单提交
- jquery from表单提交
- 自定义 from 表单验证
- from 表单提交
- 前端进阶---from表单---
- JQueryEasyUI From 提交表单
- HTML5 from表单
- HTML5 from表单实例
- from表单提交验证
- JS from表单提交
- HTML-from表单
- from表单递交
- html5 from表单
- 简单的from表单
- from表单的提交
- 从系统层禁用app
- 用clock实现延时
- html5 WebSocket
- RTC(JNI)概述
- hihocoder #1338 A Game
- from表单
- grep常用操作
- local_bh_disable, preempt_disable, local_irq_disable
- linux下 Jdk版本切换
- apache httpclient新版本的get/post请求
- 浅谈Ajax
- java 导出Excel 转图片地址为图片
- 【单片机笔记】STM8S系列单片机FLASH操作
- github clone报错Conection refused