当前位置:网站首页>JS submit the form to determine whether the user name and password are empty
JS submit the form to determine whether the user name and password are empty
2022-07-26 13:49:00 【Teenagers】
<form action="" method="post" onsubmit="return check()"></form>
function check() {
var usercode = $("#usercode").val();
var password = $("#password").val();
if (usercode == "" || password == "") {
$("#message").text(" Account number or password cannot be empty !");
return false;
}
return true;
}
边栏推荐
- Upload pictures to get width and height
- I. creation and constraint of MySQL table
- Videojs to canvas pause, play, switch video
- Frisbee, 2022 "black red" top stream
- 最新战报:十项认证,五项最佳实践
- Jenkins 中 shell 脚本执行失败却不自行退出
- Pytorch学习笔记(一)安装与常用函数的使用
- Golang port scanning design
- Codeforces Round #810 (Div. 2)【比赛记录】
- 从标注好的xml文件中截取坐标点(人脸框四个点坐标)人脸图像并保存在指定文件夹
猜你喜欢
随机推荐
【C语言学习者必会的题目集锦1】巩固基础,稳步提高
Cavans realizes Static Rolling barrage
WPS凭什么拒绝广告?
【OAuth2】八、OAuth2登录的配置逻辑-OAuth2LoginConfigurer和OAuth2ClientConfigurer
数据泄漏、删除事件频发,企业应如何构建安全防线?
How to realize the reality of temporary graphic elements
Go multithread communication, control coordination and main thread shutdown (sync.waitgroup)
With frequent data leakage and deletion events, how should enterprises build a security defense line?
Docker integrates the redis sentinel mode (one master, two slave and three sentinels)
.net6 encounter with the League of heroes - create a game assistant according to the official LCU API
JS, e.pagex, pagey modal box drag
Why does WPS refuse advertising?
Brief introduction of reflection mechanism
「中高级试题」:MVCC实现原理是什么?
Time complexity analysis of bubble sorting
Videojs to canvas pause, play, switch video
基址寻址和变址寻址区别
POM文件详解
[shaders realize overlay to re cover cross dressing effect _shader effect Chapter 9]
Algorithm -- continuous sequence (kotlin)









