form validation for email in js
<script>
function validateform(){
var name=document.myform.name.value;
var password=document.myform.password.value;
if (name==null || name==""){
alert("Name can't be blank");
return false;
}else if(password.length<6){
alert("Password must be at least 6 characters long.");
return false;
}
}
Also in JavaScript:
- react Refused to execute inline script because it violates the following Content Security Policy directive
- how to validate email in node js
- js onscroll event
- title case javascript
- ngfor on keys of a dictionary angular
- typecasting javascript
- discord js presence update
- parse csv javascript
- node downgrade windows
- how to get session value using javascript
- how to check version of node js in cmd
- create json string c#
- if condition empty javascript
- import all from javascript
- get selected option text jquery
- how to clear state in react hooks
- jquery get label from select
- fullscreen electron
- collection.ensureIndex is deprecated
- password validation with regular expression in javascript
- javascript break out of loop
- rematch config
- react native vs flutter
- html how to hide and show multiple